Find Pseudo-Cyclic Number
A cyclic number is an integer in which cyclic permutations of the digits are successive multiples of the number https://en.wikip...
Is It a Snake?
Given an m-by-n matrix, return true if the elements of the matrix are a connected "snake" shape from 1 to m*n. Otherwise return ...
6 years 前
已解决
Polar Form Complex Number Entry
Write a function that takes the magnitude and angle(in degrees) of a complex number and returns a complex variable. Positive ang...
Find same numbers touching each other...
So the goal here is to find any number that is equal to its immediate neighbors and mark it true. Here is some examples:
x...
6 years 前
已解决
Kissing Circles-01
Three circles are mutually tangent to each other and also to a line.
find the radius of the smallest circle. The radius of th...
6 years 前
已解决
Which way to go?
Given an m*n grid,
How many ways are there to go from upper left corner to the lower right one?
You can only move right...
6 years 前
已解决
Slicing the cube
A bored matlab enthusiast has a cube with volume n^3.
He decides to paint the entire surface of the cube red. Then, with slices...
6 years 前
已解决
Matrix diagonalization
You will be given Two matrices A and B.
Return 1 if B is the diagonal matrix of A, 0 otherwise
6 years 前
已解决
Rearrange string
Input is a given string. Output is the number of ways to rearrange the string.
6 years 前
已解决
Choose group with people
How many ways can you choose n groups of n people from n^2
people, assuming the groups are distinct? The number of people i...