Grieta Danosa
2018년부터 활동
Followers: 0 Following: 0
Feeds
문제를 풀었습니다
Tell me the slope
Tell me the slope, given a vector with horizontal run first and vertical rise next. Example input: x = [10 2];
대략 6년 전
문제를 풀었습니다
Triangle Numbers
Triangle numbers are the sums of successive integers. So 6 is a triangle number because 6 = 1 + 2 + 3 which can be displa...
대략 6년 전
문제를 풀었습니다
Sum all integers from 1 to 2^n
Given the number x, y must be the summation of all integers from 1 to 2^x. For instance if x=2 then y must be 1+2+3+4=10.
대략 6년 전
문제를 풀었습니다
Make a checkerboard matrix
Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1,1) should be 1. Examp...
대략 6년 전
문제를 풀었습니다
Determine if input is odd
Given the input n, return true if n is odd or false if n is even.
대략 6년 전
문제를 풀었습니다
Vector indexing: lower than mean
Find all values in a vector lower than the mean of the vector
대략 6년 전
문제를 풀었습니다
Matrix element wise multiplication
Take two incoming vectors, and multiply them element wise
대략 6년 전
문제를 풀었습니다
Find the index of the lowest number in a matrix
Take a matrix, and find the [row cal] index of the lowest number
대략 6년 전
문제를 풀었습니다
Replace 0 indices in array with 1's
Take a incoming vector, and replace 0's with ones
대략 6년 전