Resuelto


Can the knight take out the pawn?
* position of knight = k * position of pawns = p can the knight take out those pawns? * k='Nf4' * p={'g6','g7'} then...

más de 3 años hace

Resuelto


Queen's move - 02
In continuation with the problem-45236 ... In the previous problem, it was assumed that there were no other chess pieces on th...

más de 3 años hace

Resuelto


Queen's move
given a number of consecutive moves of queen, check for their validity based on their previous position.... but remember if u g...

más de 3 años hace

Resuelto


chess position
given the position of a chess piece in algebric notation, convert it into 8 by 8 matrix format. For example, * 'Qd5' >> [3,4]...

más de 3 años hace

Resuelto


Easy Sequences 13: Average Speed of Spaceship
A certain alien spaceship is capable of traveling at extremely high velocities and is able to change speed instantaneously. The ...

más de 3 años hace

Resuelto


Easy Sequences 31: N-N's Sequence
We define the N-N's Sequence, as the series of all positive integers in ascending order and with repetition, wherein any number ...

más de 3 años hace

Resuelto


Easy Sequences 23: Hat Guessing Game!
Consider the following Game Show: Hats, with numbers written on each, were placed on the heads of the participants. Participant...

más de 3 años hace

Resuelto


Sum two matrices
Take two incoming matrices, and sum them

más de 3 años hace

Resuelto


Sum the rows
Sum the rows of the given matrix. Example x = [ 1 2 3 4 ] y = [ 3 7 ]

más de 3 años hace

Resuelto


sum all digits
input = 123456789, output = 1+2+3+4+5+6+7+8+9 = 45

más de 3 años hace

Resuelto


Calculate the number of elements in a matrix.
Calculate the number of elements in a matrix.

más de 3 años hace

Resuelto


Funny problems
Generate the following vector: if n=1 then q=1; elseif n=2 then q=[2 2 1]; elseif n=3 then q=[3 3 3 2 2 1]; ... end

más de 3 años hace

Resuelto


square of a number
find square of a given number

más de 3 años hace

Resuelto


easy problem
Find the last element of the array

más de 3 años hace

Resuelto


String Logic 19
Examples: 'DIG' --> 'I' 'IMPORTANT' --> 'MOTN' 'DEAL' --> 'EL' 'LIMB' --> 'IB' 'MOSTLY' --> 'OTY'

más de 3 años hace

Resuelto


String Logic 8
Example: 'CAT' --> 65 'DOG' --> 68 'ROSY' --> 79 'MATLAB' --> 65 'TRUST' --> 82 'MOSTLY' --> 76

más de 3 años hace

Resuelto


Become the leader
The goal of this problem is the same as the goal of the rest of them: *become the leader*. Actually, you can only solve this ...

más de 3 años hace

Resuelto


Unique - Very Very Large Numbers
Given a vector column, with some very large numbers, create the ascending sort and unique vector. *Input:* A (column vector)...

más de 3 años hace

Resuelto


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

más de 3 años hace

Resuelto


How to calculate log?
There is a log that have base 5. How to calculate? log5(x)?

más de 3 años hace

Resuelto


Area of a Square
Given the length x of the side of a regular square, find the area of the square, A.

más de 3 años hace

Resuelto


Multiplos 7
Escreva um programa que mostre todos os números entre 5 e 100 que são divisíveis por 7, mas não são múltiplos de 5. Os números o...

más de 3 años hace

Resuelto


GJam 2014 China Rd B: Dragon Maze
This Challenge is derived from <http://code.google.com/codejam/contest/2929486/dashboard#s=p3 GJam 2014 China Dragon Maze>. Smal...

más de 3 años hace

Resuelto


007: Chinese Barrack Invasion
*MISSION:* Successfully invade a military barrack located in China. *WARNING:* There is a row of _n_ security switches protec...

más de 3 años hace

Resuelto


find whether it is prime or not
For a given number find if its prime

más de 3 años hace

Resuelto


Delete 2nd and 5th column of Given 6*6 matrix
Delete the 2nd and 5th columns of the given 6*6 matrix. Example Suppose A = magic(6) 35 1 6 26 19 ...

más de 3 años hace

Resuelto


Rotate a matrix for 180 degree
Rotate a matrix for 180 degree for eg: x=[1 2 3 4] y=[4 3 2 1]

más de 3 años hace

Resuelto


Transpose of matrix
Transpose of matrix as per test cases

más de 3 años hace

Resuelto


Is it column vector?
Is it column vector? Check vector for column vector without using iscolumn function.

más de 3 años hace

Cargar más