Resuelto


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

casi 2 años hace

Resuelto


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

casi 2 años hace

Resuelto


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

casi 2 años hace

Resuelto


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.

casi 2 años hace

Resuelto


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

casi 2 años hace

Resuelto


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

casi 2 años hace

Resuelto


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

casi 2 años hace

Resuelto


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

alrededor de 2 años hace

Resuelto


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

alrededor de 2 años hace

Resuelto


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

alrededor de 2 años hace

Resuelto


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

alrededor de 2 años hace

Resuelto


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

alrededor de 2 años hace

Resuelto


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

alrededor de 2 años hace

Resuelto


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

alrededor de 2 años hace

Resuelto


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

alrededor de 2 años hace

Resuelto


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

alrededor de 2 años hace

Resuelto


Radians to Degrees
Convert radians to degrees.

alrededor de 2 años hace

Resuelto


Degrees to Radian
Convert degrees to radians

alrededor de 2 años hace

Resuelto


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

alrededor de 2 años hace

Resuelto


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

alrededor de 2 años hace

Resuelto


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

alrededor de 2 años hace

Resuelto


Number Puzzle - 064

alrededor de 2 años hace

Resuelto


Number Puzzle - 049

alrededor de 2 años hace

Resuelto


Number Puzzle - 066

alrededor de 2 años hace

Resuelto


Number Puzzle - 089

alrededor de 2 años hace

Resuelto


Number Puzzle - 100

alrededor de 2 años hace

Resuelto


Number Puzzle - 023

alrededor de 2 años hace

Resuelto


Number Puzzle - 034

alrededor de 2 años hace

Resuelto


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

alrededor de 2 años hace

Resuelto


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

alrededor de 2 años hace

Cargar más