Risolto


Is this is a Tic Tac Toe X Win?
For the game of <https://en.wikipedia.org/wiki/Tic-tac-toe Tic Tac Toe> we will be storing the state of the game in a matrix M. ...

circa 5 anni fa

Risolto


Sort a list of complex numbers based on far they are from the origin.
Given a list of complex numbers z, return a list zSorted such that the numbers that are farthest from the origin (0+0i) appear f...

circa 5 anni fa

Risolto


Flip the bit
Given an input character string (e.g. '1001'), return a character string with the bits flipped ('0110').

circa 5 anni fa

Risolto


Right and wrong
Given a vector of lengths [a b c], determines whether a triangle with those sides lengths is a right triangle: <http://en.wikipe...

circa 5 anni fa

Risolto


Specific Element Count
Given a vector _v_ and a element _e_, return the number of occurrences of _e_ in _v_. Note: NaNs are equal and there may be n...

circa 5 anni fa

Risolto


multiple of nine?
Given a positive number n, return true if n is a multiple of 9 and false if not. Do not make the division and do not use functio...

circa 5 anni fa

Risolto


Vector Multiplication
Vector Multiplication of three matrix as shown in test cases.

circa 5 anni fa

Risolto


Calculating selling price
Cost of a Product is $x What should be the selling price if you want to gain 10%?

circa 5 anni fa

Risolto


Calculate square and cube of number
Calculate square and cube of number x

circa 5 anni fa

Risolto


Remove and Sort
Given a randomized array n, sort it and remove all odd integers. n=5 y = [2 4]

circa 5 anni fa

Risolto


Skip by a multiple
Given an integer create an array of its multiples. Array must have a length of 15

circa 5 anni fa

Risolto


Reverse a string
Reverse the given string. Example input = 'reverse' output = 'esrever'

circa 5 anni fa

Risolto


Calculate volume of box
Calculate the volume of box,hiven its sides

circa 5 anni fa

Risolto


first element of matrix
find the first elements of a column matrix

circa 5 anni fa

Risolto


Halder function
Find the halder function value of a number

circa 5 anni fa

Risolto


sum of first 'n' terms
Given n=10, find the sum of first 'n' terms Example: If n=10, then x=1,2,3,4,5,6,7,8,9,10. The sum of these n=10 terms is 55...

circa 5 anni fa

Risolto


find a specific element from an matrix
Find the element from matrix which is in 2nd row and 3rd column.

circa 5 anni fa

Risolto


Determine whether the input is divisible by 3 as well as 5
If the input is divisible by 3 as well as 5 then the output should be 'true' otherwise 'false'

circa 5 anni fa

Risolto


Find remainder when x is divided by 3
Find remainder when x is divided by 3

circa 5 anni fa

Risolto


Times 3 problem
When you enter the number, it should return the number multiplied by 3

circa 5 anni fa

Risolto


multiply an array by its position number
You have given an array. Multiply an array by its position number

circa 5 anni fa

Risolto


Log of a number
Write a script that will give the log of x as output.

circa 5 anni fa

Risolto


Unit conversion
Convert x degree Celsius to y degree Fahrenheit.

circa 5 anni fa

Risolto


Switch matrix to a column vector
for e.g. x = [1 2 3 4] y = 1 3 2 4

circa 5 anni fa

Risolto


Determine if input is divisible by three.
Given a positive integer, n, determine if n is divisible by 3. If yes, the function should output true. If no, false.

circa 5 anni fa

Risolto


Square root of a number
Write a code that will output the square root of x.

circa 5 anni fa

Risolto


Annual Salary
What is the annual salary of Mr. Cody if he works 40 hours a week and gets $x per hour and a yearly bonus of $2000? (Let, 50 wee...

circa 5 anni fa

Risolto


Write a code that will follow the equation y = x * (x + x) * x.
If x = 5, y = 5 * (5+5) * 5 = 250

circa 5 anni fa

Risolto


Find the sum of n squares
What is the sum of the squares of the first n integers?

circa 5 anni fa

Risolto


Find the last digit
FInd the last digit of a given number. Given number is the input and output should be the last digit of that number.

circa 5 anni fa

Carica altro