해결됨

Open coded lock.

Guess the <hint://fliplr(anchortext) password> or break the <2314/solutions/new#test_suite_body lock>.

약 1달 전

해결됨

make histogram

You probably know the function hist(x,n) to get the histogram. Now try to write the function yourself! For the cheaters wanti...

약 1달 전

해결됨

Check prime numbers

Let x, return 1 if x is a prime number, 0 otherwise e.g x = 7, return y =1; x = 6 return y = 0;

약 1달 전

해결됨

create a matrix y of size (n+1) whose last column's elements are the summation of the elements of all the other columns and last row's elements are the summation of the elements of all the other rows; where 'n' is the size of the input matrix 'x'.

for example x=[1 2 3;4 5 6;7 8 9] then y=[1 2 3 6; 4 5 6 15; 7 8 9 24; 12 15 18 45]

약 1달 전

해결됨

D'Hondt Method of Proportional-Representation

The D'Hondt method is a proportional representational method for allocating seats to parties in an election. <https://en.wiki...

약 1달 전

해결됨

Hamming Weight - Size Scoring

The Hamming Weight, <http://en.wikipedia.org/wiki/Hamming_weight wiki Hamming Weight>, in its most simple form is the number of ...

약 1달 전

해결됨

Fraction of a fraction of a ...

One sort of brainteaser problem is a math problem wherein you are asked what the given fraction of a fraction of a ... number is...

약 1달 전

해결됨

Find the nearest prime number

Happy 5th birthday, Cody! Since 5 is a prime number, let's have some fun looking for other prime numbers. Given a positive in...

약 1달 전

해결됨

Squares in Squares - Concentric Squares

Given a number, n, create an n x n sized matrix with concentric squares of 1s from the outside in. There should be a gap between...

약 1달 전

해결됨

Given a vector x, return vector y with all negative elements from the vector x.

Given a vector x, return vector y with all negative elements from the vector x if x has negative elements. Otherwise return 0. ...

약 1달 전

해결됨

square a number twice with square root of 4/5

square a number twice with square root of 4/5

약 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달 전

해결됨

Convert base 10 to base x (2-16)

Convert input number(s) (double) in base 10 to base x (2 through 16). Output should be a cell of character arrays. Compute outpu...

약 2달 전

해결됨

Area of Triangle with Oblique Coordinates

Find area of triangle given points p1, p2, and p3 where the y-axes is w degrees counter clockwise from the x-axes. For exampl...

약 2달 전

해결됨

Create a "+" flag

Given two odd numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1...

약 2달 전

해결됨

Lights Out 15 - 5x5, broken buttons I

<https://en.wikipedia.org/wiki/Lights_Out_(game) Lights Out> is a logic game wherein all lights need to be turned off to complet...

2달 전