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

6 meses hace

Resuelto


Castling-03
Given the position of different chess pieces on the chessboard, figure out whether castling is valid or not in the next move (wh...

6 meses hace

Resuelto


Castling-02
This is a follow up of problem <https://www.mathworks.com/matlabcentral/cody/groups/1/problems/45329-castling-01> Given...

6 meses hace

Resuelto


Castling-01
Given the position of only one player's chess pieces(some of them) on the chessboard, figure out whether castling is valid or no...

6 meses hace

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

6 meses hace

Resuelto


Checkmate-02
This is an extension of the problem <https://www.mathworks.com/matlabcentral/cody/problems/45238-checkmate> If the king is in...

6 meses hace

Resuelto


Checkmate
* The positions of different chess pieces are given in a cell *p* . * The position of the king is given as *x* Determine i...

6 meses 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...

6 meses 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...

6 meses hace

Resuelto


Knight's Watch
"Night gathers, and now my watch begins" A knight is placed on an n-by-n sized chessboard at the position x. Find the proba...

6 meses hace

Resuelto


Get Cody's screen size
Return an object that helps this problem's test suite return Cody's screen size.

6 meses hace

Resuelto


ZigZag - 05
Given a matrix, print all its elements in the alpha form. For example - a=[16 2 3 13 5 11 10 8 ...

6 meses hace

Resuelto


Exhaust all possible logical vectors
Input a length argument and list all possible logical vectors of that length. My solution is of size 29. Can you find an even s...

6 meses hace

Resuelto


How many ways?
Create a program to determine in how many ways can a regular n-gon be divided into n-2 triangles?

6 meses hace

Resuelto


Ugly numbers - 02
Ugly numbers are those whose prime factors are 2, 3 or 5. find the nth ugly number. n.b. unlike the previous problem,trivi...

6 meses hace

Resuelto


Is the test point on the line segment?
Given the [x,y,z] coordinates for the three points pa, pb, and pc, return true if the test point pc is on the line segment with ...

6 meses hace

Resuelto


Check if vertices form a rectangle
Given a set of 4 vertices defined by vectors X and Y, return true if the vertices form a rectangle and false otherwise. X and Y...

6 meses hace

Resuelto


GJam 2011 Africa Qualifier C: House, maximum area rectangle
This Challenge is derived from <http://code.google.com/codejam/contest/837485/dashboard#s=p2 GJam 2011 Africa: Building a House>...

6 meses hace

Resuelto


Reassign cell contents to empty variables, preserving cell content data type
Given a cell array C, return a cell array D with the following specifications: 1. D has the same size as the input C. 2. E...

6 meses hace

Resuelto


GJam 2014 China Rd A: Library Sorting (Large)
This Challenge is derived from <http://code.google.com/codejam/contest/2924486/dashboard#s=p2 GJam 2014 China Sorting>. Subset ...

6 meses hace

Resuelto


Metamorphosis
Inspired by problem <http://www.mathworks.com/matlabcentral/cody/problems/866-community-problem-500 866>. Can you make your c...

6 meses hace

Resuelto


Create a fixed format text output
Given a short brief matrix, such as x = [1.2 2.4 3.6; 1.5 2.3 3.5; 1.35 2.35 3.65] and a label 13, create a fixed format text o...

6 meses hace

Resuelto


Write a code to implement Euler's method to integrate a simple function
Euler's method approximates the solution to a differential equation as where . The challenge is to write a code that can take...

6 meses hace

Resuelto


Would Homer Like It?
Given a matrix of ones and zeros, you must determine if there are any doughnuts present (would Homer Simpson like it?). A doug...

6 meses hace

Resuelto


Write a string
The answer should be a string that is the value: "I like apples!" (Ignore the quotation marks, just write what is inside the ...

6 meses hace

Resuelto


Oxidation State
* In some chemical compounds, the oxidation state of each atom of hydrogen H is +1. * In some chemical compounds, the oxidation...

6 meses hace

Resuelto


X-intercepts of a quadratic.
Find the y value of the quadratic of the function at a point x.

6 meses hace

Resuelto


Point on a line
Find the slope of the straight line between the points a and b. Then find y at x=20.

6 meses hace

Resuelto


Determine the winner of a goofy golf tournament
My brother and father were playing golf one day, and they caught up to a group that was part of a tournament. The group members ...

6 meses hace

Resuelto


Dick Van Dyck?
Not the celebrity, Dick Van Dyke, this problem relates to balanced strings of parentheses, Dyck Language. Please attach the de...

6 meses hace

Cargar más