Matrix Manipulation
Given an m*n matrix, see if a matrix contains any 0s in any row. if it contains 0 anywhere in any particular row, delete that ro...
Temperature conversion
Convert temperature in degrees Celsius (C) to temperature in degrees Kelvin (K). Assume your answer is rounded to the nearest Ke...
3年以上 前
解決済み
Related Vectors
I have two vectors A & B. If the values in vector A is zero then the corresponding value in vector B should be zero.
Example:...
3年以上 前
解決済み
Sum the Digits of a Number
Given an integer, sum the digits repeatedly until you end up with a single value less than 10.
For example, if you add the di...
3年以上 前
解決済み
No Twins?
Write a function that accepts as input a vector and returns the same vector, but retaining only the first occurrence of an eleme...
Compare two input matrices
Check which input matrix has more elements. Return "1" if matrix A has more elements than matrix B. Otherwise return "0".
Exa...
3年以上 前
解決済み
Add 3 numbers
In this problem, you have to add three numbers a, b and c.
Give output d = add(a,b,c)
3年以上 前
解決済み
Times 10
Try out this test problem first.
Given the variable x as your input, multiply it by ten and put the result in y.
Examples:...
Sum of the Multiplication of Vectors
Given the vectors x and y as input, multiply the vectors and return the summation of its elements.
Example:
x = [1 2 ...
3年以上 前
解決済み
true or false
if the matrix has a zero, return true. else, return false