Solved


String count
given a string 'str', count the number of the followings - * letters * digits * white space * capital letters * smal...

4 years ago

Solved


String to Binary Representation
Given a string, convert it using UTF-8 into a binary array where each character or byte is arraigned low to high. For example: ...

4 years ago

Solved


Cody Problems in French : Trouvez la logique Pt.1
On rentre x = 4 et il en sort y = 160. Trouvez la logique entre x et y, aidez-vous de la test suite. Bon courage. P.S: L'...

4 years ago

Solved


Remove duplicated triangles
Input T is a triangulation (triplet list of indices -positive integers-, each index refering to a vertex number in a correspondi...

4 years ago

Solved


Find a common vertex
First input is T, a triplet list of indices. Second input is i, a single index (positive integer). The goal of this function is ...

4 years ago

Solved


Capitalize
Capitalize the 1st letter of each input. Other letters should be lowercase. For example - a='alphaS' >> 'Alphas' a='1...

4 years ago

Solved


Factorize uniquely! (★★)

4 years ago

Solved


Make a checkerboard matrix (★★★★★)
(copy of Prob. 4) Given an integer n, make an n-by-n matrix made up of alternating ones and zeros as shown below. The a(1...

4 years ago

Solved


*Prime number check 2 (in construction)
Another way to see if a number is prime is to count the number of factors. For example, the number 4 has 2 factors, [ 2 4 ]...

4 years ago

Solved


Abelian Sandpile - 02
Generate a matrix like Abelian Sandpile where the four corner element is n. For example, n=4 [4 3 2 1 ...

4 years ago

Solved


Yoonir - 01
Find the area of a five-pointed star inscribed in a circle of radius r.

4 years ago

Solved


Extract leading non-zero digit (★★★★★)
(Copy of Problem 47) Benford's Law states that the distribution of leading digits is not random. This is probably because man...

4 years ago

Solved


Area of rhombus

4 years ago

Solved


remove numbers from a string
check the given string for any numbers.in case one is found,remove it.but the two portions should be separated. if more than one...

4 years ago

Solved


Takuzu row
Takuzu row is one row in a logic puzzle of a rectangular grid. The rules are as follows: (1) The row is filled with 1s and 0s...

4 years ago

Solved


Cross ("+") flag returns
Given two odd numbers, [m, n], return a matrix of size m x n which has all elements of the centre column and centre row set as 1...

4 years ago

Solved


Pascal's Equilateral triangle inside a Matrix!!!
Given a number of row 'n', generate the following pascal's matrix 'p' where spaces are filled by 'zeros'. number of row, n = ...

4 years ago

Solved


cross-section of 3D pyramid
Create 3d pyramid of ones and zeros...where pyramid-part is denoted by ones and outer-part is denoted by zeros..where base is sq...

4 years ago

Solved


Count the non-zero elements along the diagonals that are immediately next to the main diagonal
Suppose, you are being told to write a matrix, *a* as input in MATLAB with having the possibility of containing zero and non-zer...

4 years ago

Solved


Where do the maximum number belongs within a 3-D matrix?
Suppose, you are given two variables *a* and *b* as inputs in 2-D format. Find out, where do the maximum number belongs (as out...

4 years ago

Solved


Invert a 3D rigid-body transformation
Given an SE(3) matrix representing a rigid-body motion, compute its inverse without using |inv()| or |pinv()| .

4 years ago

Solved


Minimal Path - 01
Given a matrix, find the minimal path sum from the top left to the bottom right by only moving to the right and down. For exa...

4 years ago

Solved


Minimal Path - 02
Given a matrix, find the minimal path from the top left to the bottom right by only moving to the right and down so that the sum...

4 years ago

Solved


Minimal Path - 04
Given a matrix, find the minimal path sum from any cell in the left column and finishing in any cell in the right column. You...

4 years ago

Solved


Minimal Path - 03
Given a matrix, find the minimal path sum from the top left to the bottom right corner. Now you can move up, right & down. ...

4 years ago

Solved


King's Cage
Given the position of the king on the chessboard, determine the minimum number of steps it'll require to reach the destination. ...

4 years ago

Solved


Bernoulli's Triangle
Generate the bernoulli's triangle upto nth row. <https://mathworld.wolfram.com/BernoulliTriangle.html>

4 years ago

Solved


lucky
check whether n is a lucky number <https://oeis.org/A000959>

4 years ago

Solved


XOR fibonacci
a & b are the first two terms in the xor fibonacci sequence. Find the nth term of that sequence. XOR fib sequence is that in ...

4 years ago

Load more