Risolto


Number Puzzles - 008

circa 2 anni fa

Risolto


Number Puzzles - 007

circa 2 anni fa

Risolto


Number Puzzles - 006

circa 2 anni fa

Risolto


Flipping a Matrix
Flipping matrix up and down. If a central row is exists, leave it, and flip remaining rows. Example Mat = magic(3) ...

circa 2 anni fa

Risolto


Prime number removal
remove all prime numbers from the input e.g. input = 1 2 3 4 5 6 7 8 9 10 11 12 ...

circa 2 anni fa

Risolto


Give prime Numbers upto n
You are given a input number x; print all the prime numbers less than equal to x.

circa 2 anni fa

Risolto


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:...

circa 2 anni fa

Risolto


Number Puzzle - 054

circa 2 anni fa

Risolto


Number Puzzle - 053

circa 2 anni fa

Risolto


Number Puzzle - 052

circa 2 anni fa

Risolto


Number Puzzle - 051

circa 2 anni fa

Risolto


Remove the middle element from a vector
Remove the middle element of a vector? *Example:* [1,2,3] should return 2 [1,2,3,4] should return 2 [] should return...

circa 2 anni fa

Risolto


Number Puzzle - 084

circa 2 anni fa

Risolto


Number Puzzle - 083

circa 2 anni fa

Risolto


Number Puzzle - 082

circa 2 anni fa

Risolto


Number Puzzle - 081

circa 2 anni fa

Risolto


Number Puzzle - 080

circa 2 anni fa

Risolto


Number Puzzle - 079

circa 2 anni fa

Risolto


Number Puzzle - 078

circa 2 anni fa

Risolto


Number Puzzle - 077

circa 2 anni fa

Risolto


Number Puzzle - 076

circa 2 anni fa

Risolto


Number Puzzle - 075

circa 2 anni fa

Risolto


Add 3 (x<=100) Or Subtract 100 and add 3(100<x)
Add 3 to every element. However, if the value is greater than 100, subtract 100 and add 3. eg. input x = [45 106; 67 1...

circa 2 anni fa

Risolto


Draw a X
Given an input , create a square matrix of zeros with an X of ones. Ex. n = 3 drawX(3) [ 1 0 1 0 1 0 1 0 1 ] ...

circa 2 anni fa

Risolto


Draw "C" in a zero matrix
Given a x-by-x matrix filled with zeros (x> 4). Use 1 to draw a letter C into it! Like this: x = 5, y = 1 1 1 1 1 1 0 0 0 1 ...

circa 2 anni fa

Risolto


Draw "T" inside a Zero Matrix
Given a x-by-x matrix filled with zeros (x> 2). Use 1 to draw a letter "T" into it! Like this: x = 5, y = 1 1 1 1 1 0 0 1 0 0...

circa 2 anni fa

Risolto


Draw 'S'
draw S using nxn matrix, where n is odd and greater than 4 S = [1 1 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 1 ...

circa 2 anni fa

Risolto


Number Puzzle - 050

circa 2 anni fa

Risolto


Number Puzzle - 049

circa 2 anni fa

Carica altro