A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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'

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


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

plus de 6 ans il y a

A résolu


Tribonacci Sequence
Generate the tribonacci sequence upto n

plus de 6 ans il y a

A résolu


How many ways?
Create a program to determine in how many ways can a regular n-gon be divided into n-2 triangles?

plus de 6 ans il y a

Charger plus