Gelöst


Dartboard Average II
A dartboard arranges the numbers 1 to 20 such that each value is typically flanked by quite different values - for example, 20 i...

mehr als ein Jahr vor

Gelöst


Dartboard Average I
A dartboard arranges the numbers 1 to 20 such that each value is typically flanked by quite different values - for example, 20 i...

mehr als ein Jahr vor

Gelöst


Triangle Coordinates
Given a natural number n, return two -element vectors, x and y, containing the coordinates of a triangular arrangement of points...

mehr als ein Jahr vor

Gelöst


Create block matrix of integers (j+k-1) - Part II
Given m, n, p, and q, create an m-by-n matrix made up of submatrices, each sized p-by-q (if possible - the last row and column o...

mehr als ein Jahr vor

Gelöst


Create block matrix of integers (j+k-1) - Part I
Given m, n, p, and q, create a matrix of m-by-n blocks (submatrices), each sized p-by-q. The elements of the (j,k)th block all h...

mehr als ein Jahr vor

Gelöst


Split Even Number Into Two Primes
Given an even whole number n (> 2), return a 2-element vector of primes, p, such that p(1) + p(2) = n. Fun note: technically it...

mehr als ein Jahr vor

Gelöst


Determine if Input is Oddish or Evenish (Odd/Even Sum of Digits)
Given a positive integer n, determine whether n is "oddish" or "evenish" - that is, whether the sum of the digits of n is odd or...

mehr als ein Jahr vor

Gelöst


Ordinary Annuity : Future Value
Theorem : Future Value of an Ordinary Annuity where; F : Future value A : Periodic payment r : Rate per period n : Numbe...

mehr als ein Jahr vor

Gelöst


Calculate Wind Chill Factor
The NWS Wind Chill Temperature (WCT) index formula for calculating the dangers from winter winds and freezing temperatures: Cal...

mehr als ein Jahr vor

Gelöst


Compound Interest : Compounding Periods
Theorem : Compound Interest where, F : Future value at the end of n periods P : Present value r : Annual nominal rate n :...

mehr als ein Jahr vor

Gelöst


Zero or hero
A number will be given as an input. You can be hero if it's not zero. (Just for fun)

mehr als ein Jahr vor

Gelöst


Identifying teenager
Suppose the age of a person is given. If he/she is a teenage, answer is 'yes'. Otherwise, the answer is 'no'.

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


Conta Consoantes
Dada uma string A, retorne a quantidade de consoantes de A; ContaConsoantes('Hello World') = 7;

mehr als ein Jahr vor

Gelöst


Matrizes Multiplicaveis
Dadas duas matrizes M1 e M2, verifique se as matrizes podem ser multiplicadas uma pela outra M1 = [1 2 3; 4 5 6] M2 = [7; 8; 9...

mehr als ein Jahr vor

Gelöst


Remove Repetidos e Ordena
Dado um vetor A, remove todos os valores repetidos deixando apenas 1 valor, e ordene o vetor. RemoveRepetidosEOrdena([1 1 2 3])...

mehr als ein Jahr vor

Gelöst


Maior Primo
Dado um valor inteiro N, qual o maior valor primo <= N MaiorPrimo(5) = 5; MaiorPrimo(10) = 7;

mehr als ein Jahr vor

Gelöst


Número Repetido
Dado um número inteiro N, verifique se o número é composto apenas do mesmo inteiro VerificaRepetido(123) = false; VerificaRepe...

mehr als ein Jahr vor

Gelöst


Distancia Vetores
Dados dois vetores a = (x1, y1) e b = (x2, y2). Calcule a distância entre os vetores e verifique se estão perto (distancia < 10)...

mehr als ein Jahr vor

Gelöst


Calculo das raizes com Bhaskara
Dado três valores a, b e c. Calcule as raizes da equação ax² + bx + c = 0 * para raizes reais, deve ser arrendondado em 2 casas...

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


Conversor de Segundos
Digite um valor referente ao tempo em segundos. Retorne um valor com a quantidade convertida em dias, horas, minutos e segundos ...

mehr als ein Jahr vor

Gelöst


Juros Simples
Faça uma função que calcule o montagem de um investimento com juros simples que receba como argumentos o capital inicial C, a ta...

mehr als ein Jahr vor

Gelöst


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

mehr als ein Jahr vor

Gelöst


Buzz
Dado um número inteiro n, retorne 'buzz' se esse valor for multiplo de 5, ou retorne o valor caso contrario. Buzz(5) = 'buzz'; ...

mehr als ein Jahr vor

Gelöst


Round2 Three Times Fight!
Your function should round the numbers then multyply them by 2 then repeat them three times

mehr als ein Jahr vor

Gelöst


Taylor Series
You can use a Taylor series to approximate common functions. The Taylor series for sin(x) is Using only the first several te...

mehr als ein Jahr vor

Gelöst


Find Logic 15

mehr als ein Jahr vor

Gelöst


Sums of cubes and squares of sums
Given the positive integers 1:n, can you: 1. Compute twice the sum of the cubes of those numbers. 2. Subtract the square...

mehr als ein Jahr vor

Gelöst


Find Logic 4

mehr als ein Jahr vor

Mehr laden