A résolu


Number Puzzles - 004
Give an example of three distinct numbers greater than 10 whose both product and sum are palindromes. The answer is not unique a...

plus d'un an il y a

A résolu


String vowel manipulation
Given a string, find all the vowels and shift them to the end of the string in the same order as they are found.

plus d'un an il y a

A résolu


Sum of Arithmetic Progression
Given the starting number, difference and the number of terms - find the sum of the arithmetic progression.

plus d'un an il y a

A résolu


Area of a triangle given its sides

plus d'un an il y a

A résolu


Find the sum of all integers in a given matrix
Finding sum of all integers in a given matrix

plus d'un an il y a

A résolu


Filter British English into American English
Given a sentence written with British spelling, return the sentence with the offending word(s) replaced with the American spelli...

plus d'un an il y a

A résolu


Add two numbers
Given two numbers a and b add them together

plus d'un an il y a

A résolu


Draw 'S'
draw S using nxn matrix, where n is odd and greater than 4 S = [1 1 1 1 1 1 0 0 0 0 1 1 1 1 1 0 0 0 0 1 ...

plus d'un an il y a

A résolu


Tribute to Ramanujan
The nth taxicab number, denoted as T(n), is defined as the smallest number that can be expressed as a sum of two positive algebr...

plus d'un an il y a

A résolu


Number Puzzles - 005

plus d'un an il y a

A résolu


Monty Python and the Holy Grail: Crossing the Bridge of Death
To cross the Bridge of Death, your function must return the numerical value for the airspeed velocity of an unladen swallow

plus d'un an il y a

A résolu


Find the standard deviation of an array
given an array, find it's standard deviation without using the std() function. Use sample formula (n-1) for standard deviation a...

plus d'un an il y a

A résolu


Probability of red tulips (at both ends of a row)
I planted tulip bulbs in a row on my flower bed. I thought that I had planted white tulips all. However, later, it turned out t...

plus d'un an il y a

A résolu


New Matrix with vector addition on diagonal
consider 2 vectors x=[1 2 3] y=[4 5 6] then generate a new Matrix, where Addition of x & y will be diagonal Elements...

plus d'un an il y a

A résolu


Polynomial evaluation
Compute the value of a polynomial of degree n with coeffcients in vector a, at value x. p(x)=a(1)+a(2)x+a(3)x^2+...+a(n+1)x...

plus d'un an il y a

A résolu


Low level NaN
I have a dataset. Columns represents different variables. A variable may start with NaN or any double type number. If it start...

plus d'un an il y a

A résolu


Find the solution of algebraic equation
Find the solution of algebraic equation of the form an*x^n + a(n-1)*x^(n-1) + (an-2)*x^(n-2)+...... a2*x^2 + a1*x^1 + a0 = 0; ...

plus d'un an il y a

A résolu


Strange Number Algorithms
Three integer numbers will be provided to you. Write a function to Step1: Multiply first number by 3. Step2: Add 6 with t...

plus d'un an il y a

A résolu


Maximizing Stock Profit
As a stock exchange broker focusing on a single transaction, your goal is to maximize profit by buying a stock at a low price an...

plus d'un an il y a

A résolu


Perfect shuffle
We call "perfect shuffle" the process of cutting a deck of cards into two equal halves, and then perfectly interleaving them: on...

plus d'un an il y a

A résolu


Digits eliminate
Complete the function my_f(n,b) to return, for a given integer, the number obtained by removing the digits '0' and 'b'. If there...

plus d'un an il y a

A résolu


Counting the occurrences of a digit in a book
The printer has printed a book with 'p' pages. How many times did they use the character 'd'? In other words, how many times doe...

plus d'un an il y a

A résolu


Number Puzzle - 063

plus d'un an il y a

A résolu


Triangulo Semelhante
Dados dois vetores A = (a1, a2, a3) e B = (b1, b2, b3) sendo referentes a arestas de triangulos. Verifique se os triangulos são ...

plus d'un an il y a

A résolu


Tipos de Triangulos
Dados os tamanhos dos lados de um triangulos A, B e C. Retorne qual o tipo do triangulo: 'equilátero', 'escaleno' ou 'isósceles'...

plus d'un an il y a

A résolu


Find mass of single floor in building
A model building has three floors are highlighted in different colours here: Assu...

plus d'un an il y a

A résolu


Lancer de dés
Ecrire une fonction qui imite le lancer d'un dé, i-e qui renvoie de façon aléatoire un entier entre 1 et 6. Attention cette fon...

plus d'un an il y a

A résolu


determine skid distance of car
Determine the distance a car skids to a stop given initial velocity (v) and time (t).

plus d'un an il y a

A résolu


Add consecutive integer numbers
Given consecutive numbers, add the numbers *without using the sum command in MATLAB.*

plus d'un an il y a

A résolu


function to compute root mean square of first nn positive odd integers
Write a function called odd_rms that returns orms, which is the square root of the mean of the squares of the first nn positive ...

plus d'un an il y a

Charger plus