Resuelto


Determina si el número es primo
Primero, antes que nada: ¿Qué es un número primo? Un número primo es cualquier número que solamente se puede dividir por 1 y ...

alrededor de 6 años hace

Resuelto


Gapful numbers
If a number is divisible by the number formed by the first and last digit of that number then it is defined as a gapful number. ...

alrededor de 6 años hace

Resuelto


Decimal to binary conversion (without using built-in function)
convert the given decimal number to its equivalent binary without using built-in function. * n=18 * out='10010'

alrededor de 6 años hace

Resuelto


Fangs of pseudo-vampire number
given a number, find all the fangs of that number. A pseudo-vampire number can have multiple of fangs. The output should be a...

alrededor de 6 años hace

Resuelto


Pseudo-vampire number
refer to <https://en.wikipedia.org/wiki/Vampire_number> Given a number x, determine whether it is a pseudo-vampire number. ...

alrededor de 6 años hace

Resuelto


The End of the World
given a date -- represent it in the Maya long count system. <https://en.wikipedia.org/wiki/Maya_calendar> <https://maya.nm...

alrededor de 6 años hace

Resuelto


Find 0 in array
Given array find where there 0 is.

alrededor de 6 años hace

Resuelto


Coin distribution
Imagine, u r in a shop. ur bill is n(2200). u want to pay the bill with minimum no of coins u have. u've coins of - 2000,1000...

alrededor de 6 años hace

Resuelto


Cat's paw - 01
lets imagine a cat, standing on an infinitely long row of tiles. since its a 'cat', string length=3; it takes 3 tiles to stand. ...

alrededor de 6 años hace

Resuelto


Connect Four - 04
Previous Problem <https://www.mathworks.com/matlabcentral/cody/problems/45355-connect-four-03> In addition to the previo...

alrededor de 6 años hace

Resuelto


Connect Four - 03
Previous Problem <https://www.mathworks.com/matlabcentral/cody/problems/45354-connect-four-01> <https://www.mathworks.co...

alrededor de 6 años hace

Resuelto


Connect Four - 02
Previous Problem <https://www.mathworks.com/matlabcentral/cody/problems/45354-connect-four-01> In addition to previous proble...

alrededor de 6 años hace

Resuelto


The Hills Are Alive...
After a long day of coding, you decide to get some fresh air and hike up a nearby hill. The hill isn't very tall, but since you...

alrededor de 6 años hace

Resuelto


Acid and water
&#9878; &#9878; &#9878; &#9878; &#9878; &#9878; &#9878; &#9878; Assume that there is a 100 liter tank. It is initially fi...

alrededor de 6 años hace

Resuelto


Anagram
Given two strings, check whether they're anagrams to each other or not.

alrededor de 6 años hace

Resuelto


Maya - 03
Following up on the previous two problems, now you've to add or subtract two Maya numerals. The 3rd input will be a function ...

alrededor de 6 años hace

Resuelto


Maya - 02
<https://en.wikipedia.org/wiki/Maya_numerals> Prev. prob. - <https://www.mathworks.com/matlabcentral/cody/problems/45375-maya...

alrededor de 6 años hace

Resuelto


Maya - 01
Given a number, convert it into the Maya numeral system. <https://en.wikipedia.org/wiki/Maya_numerals> For example, n...

alrededor de 6 años hace

Resuelto


Take it out
Consider the integer number sequence N (1 to infinity). After each iteration, take out the (k+1)th elements; where k is the n...

alrededor de 6 años hace

Resuelto


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

alrededor de 6 años hace

Resuelto


Lost days
Given two dates in a particular format, calculate the difference between them.

alrededor de 6 años hace

Resuelto


Connect Four - 01
Connect four is a two player board game. <https://en.wikipedia.org/wiki/Connect_Four> Given a complete connect-four board,...

alrededor de 6 años hace

Resuelto


Sum! Sum! Sum!
Calculate the sum of the sequence up to nth term >> a,aa,aaa,aaaa,... 2,22,222,2222,... [for a=2]

alrededor de 6 años hace

Resuelto


Be happy
check whether the given number is happy in b-base. * A happy number can be defined as a number which will yield 1 when it is ...

alrededor de 6 años hace

Resuelto


Grazing-01
A cow is tied to an outside corner of a rectangular barn of size (a,b) with a rope of length l. What is the maximum area the cow...

alrededor de 6 años hace

Resuelto


dễ dàng
cho 2 số. tính tích của chúng

alrededor de 6 años hace

Resuelto


Determine whether a given point is inside or outside a polygon
A closed polygon may be described by an N x 2 array of nodes, where the last node and the first node are the same. Each row of ...

alrededor de 6 años hace

Resuelto


Find the centre of an arc and its radius
Given two points on an arc (x0,y0) and (x1,y1) and the angle between them, alpha. Return the centre of the circle and the rad...

alrededor de 6 años hace

Resuelto


Tribonacci Sequence
Generate the tribonacci sequence upto n

alrededor de 6 años 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?

alrededor de 6 años hace

Cargar más