Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


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

1 year ago

Solved


Find Logic 15

1 year ago

Solved


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

1 year ago

Solved


Find Logic 4

1 year ago

Solved


Area Conversion 2

1 year ago

Solved


Energy Conversion 1

1 year ago

Load more