Lah Numbers
Create a square lower diagonal matrix containing the first n Lah number coefficients. In mathematics, the Lah numbers are coeffi...
6年弱 前
解決済み
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年弱 前
解決済み
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年弱 前
解決済み
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年弱 前
解決済み
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年弱 前
解決済み
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年弱 前
解決済み
Matrix diagonalization
You will be given Two matrices A and B.
Return 1 if B is the diagonal matrix of A, 0 otherwise
6年弱 前
解決済み
Rearrange string
Input is a given string. Output is the number of ways to rearrange the string.
6年弱 前
解決済み
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...