Feeds
문제를 풀었습니다
Matrix Quadrants
Write a function that takes N as the input, and outputs a matrix whose upper-left (NxN) quadrant contains all ones, the lower-ri...
대략 1개월 전
문제를 풀었습니다
radius of a spherical planet
You just measured its surface area, that is the input.
대략 1개월 전
문제를 풀었습니다
Pizza!
Given a circular pizza with radius z and thickness a, return the pizza's volume. [ z is first input argument.] Non-scored bonus...
대략 1개월 전
문제를 풀었습니다
Temperature Conversion 3
Given a temperature in Celcius, convert it to Fahrenheit.
대략 1개월 전
문제를 풀었습니다
Rotate Matrix @180 degree
Rotate Matrix @180 degree Example A=[8 1 6; 3 5 7; 4 9 2], then answer would be [2 9 4;...
대략 1개월 전
문제를 풀었습니다
Square root
Given x (a matrix), give back another matrix, where all the elements are the square roots of x's elements.
대략 1개월 전
문제를 풀었습니다
Calculate the average value of the elements in the array
Calculate the average value of the elements in the array
대략 1개월 전
문제를 풀었습니다
the average value of the elements
Calculate the average value of the elements in the array
대략 1개월 전
문제를 풀었습니다
Laws of motion 4
Given the initial velocity 'u', final velocity 'v' and acceleration 'a', find the distance travelled.
대략 1개월 전
문제를 풀었습니다
Find the Best Hotels
Given three input variables: hotels - a list of hotel names ratings - their ratings in a city cutoff - the rating at which yo...
대략 1개월 전
문제를 풀었습니다
Calculate BMI
Given a matrix hw (height and weight) with two columns, calculate BMI using these formulas: 1 kilogram = 2.2 pounds 1 inch = 2...
대략 1개월 전
문제를 풀었습니다
Verify Law of Large Numbers
If a large number of fair N-sided dice are rolled, the average of the simulated rolls is likely to be close to the mean of 1,2,....
대략 1개월 전
문제를 풀었습니다
Find the Oldest Person in a Room
Given two input vectors: * |name| - user last names * |age| - corresponding age of the person Return the name of the ol...
대략 1개월 전
문제를 풀었습니다
Roll the Dice!
Description Return two random integers between 1 and 6, inclusive, to simulate rolling 2 dice. Example [x1,x2] = rollDice(...
대략 1개월 전



