Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


Find an inscribed square on a closed curve

mehr als 3 Jahre vor

Gelöst


Factorize uniquely! (★★)

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


Area of rhombus

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Gelöst


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

mehr als 3 Jahre vor

Mehr laden