A résolu


Digito das Dezenas
Dado um número inteiro n, retorne qual o digito referente ao digito das dezenas n = 250; digito = DigitoDezena(n); digito = 5...

presque 2 ans il y a

A résolu


Lista Ordenada
Dado um vetor V, verifique se o vetor está ordenado, retorne true ou false. Ordenado([1 2 3 4]) = true;

presque 2 ans il y a

A résolu


Caracteres Unicos
Dada uma string, verifique se a string é composta de caracteres únicos, ou seja, nenhuma letra se repete. Retorne true ou false;...

presque 2 ans il y a

A résolu


Given a number N, find the smallest prime P>N
Given a number N, find the smallest prime P greater than N. For example: If N=10 then P=11. If N=13 then P=17.

presque 2 ans il y a

A résolu


area of an annulus
Given the diameter d of the inner circle of the annulus. Given length z of a chord of the outer circle of the annulus. This chor...

presque 2 ans il y a

A résolu


Generalised Hamming Number
Inspired by Project Euler n°204 and Problem 1308 by James A generalised Hamming number of type n, has no prime factor larger ...

presque 2 ans il y a

A résolu


Find vampire numbers
A vampire number is a number v that is the product of two numbers x and y such that the following conditions are satisfied: at ...

presque 2 ans il y a

A résolu


5th Time's a Charm
Write a function that will return the input value. However, your function must fail the first four times, only functioning prope...

environ 2 ans il y a

A résolu


Sleeping Queens 1
My youngest daughter received a card game named Sleeping Queens for Christmas this year, and has been playing it nearly non-stop...

environ 2 ans il y a

A résolu


The twelve days of Christmas
Traditionally there are twelve days of Christmas to celebrate ("Twelvetide"), typically starting with Christmas Day (25 December...

environ 2 ans il y a

A résolu


How many Christmas presents under the tree?
For many families at Christmas, each family member gives 1 present to every other family member. The main exception is that chil...

environ 2 ans il y a

A résolu


Joules to Megatons of TnT
Given joules, J, make a function that converts to megatons of TNT.

environ 2 ans il y a

A résolu


Rankine to Celsius Converter
Given input R, degrees Rankine, convert into degrees Celsius.

environ 2 ans il y a

A résolu


Kinetic Energy
Given mass, m, and kinetic energy, KE, find the velocity of the object.

environ 2 ans il y a

A résolu


Energy-Mass Equivalence
Given input enegy of the object, E, and constant c = 300,000,000, find the mass of the object.

environ 2 ans il y a

A résolu


Hydrostatic Pressure
Given depth(height), in m, find the pressure under a body of water. Need to know the density of water(kg/m^3), and gravity(m/s^2...

environ 2 ans il y a

A résolu


Radians to Degrees
Convert radians to degrees.

environ 2 ans il y a

A résolu


Degrees to Radian
Convert degrees to radians

environ 2 ans il y a

A résolu


MPS to MPH
Given the speed in miles per second, find the speed in miles per hour.

environ 2 ans il y a

A résolu


Calculating Ring Area
In two-dimensional space, a ring can be constructed by using two concentric circles. Determine the area of a ring which has r1 ...

environ 2 ans il y a

A résolu


Area of Cylindrical Shell
Consider a cylinder with a non-zero thickness with an inner radius of r1 and an outer radius of r2. If the height of the cylinde...

environ 2 ans il y a

A résolu


Number Puzzle - 064

environ 2 ans il y a

A résolu


Number Puzzle - 049

environ 2 ans il y a

A résolu


Number Puzzle - 066

environ 2 ans il y a

A résolu


Number Puzzle - 089

environ 2 ans il y a

A résolu


Number Puzzle - 100

environ 2 ans il y a

A résolu


Number Puzzle - 023

environ 2 ans il y a

A résolu


Number Puzzle - 034

environ 2 ans il y a

A résolu


High school cafeteria
Given an input vector of positive integers, return a row vector with the primes first (in increasing order) and the composites n...

environ 2 ans il y a

A résolu


Elapsed time is -0.005204 seconds.
Write a function that takes less than zero seconds to execute, as measured using tic and toc. For repeatability, the test case p...

environ 2 ans il y a

Charger plus