Solved


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

2 months ago

Solved


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

2 months ago

Solved


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

2 months ago

Solved


Jump Search - 02
Find the number of leaps you need to take to find the 'first occurrence' of an element in an array using the jump search algorit...

2 months ago

Solved


Simple Interest : Calculate time in years
Theorem : Simple Interest where; F : Future Value P : Present Value r : Annual simple interest rate (decimal) t : Time in...

2 months ago

Solved


Simple Interest : Calculate annual simple interest rate
Theorem : Simple Interest where; F : Future Value P : Present Value r : Annual simple interest rate (decimal) t : Time in...

2 months ago

Solved


Simple Interest : Calculate Present Value
Theorem : Simple Interest where; F : Future Value P : Present Value r : Annual simple interest rate (decimal) t : Time in...

2 months ago

Solved


Simple Interest : Calculate Future Value
Theorem : Simple Interest where; F : Future Value P : Present Value r : Annual simple interest rate (decimal) t : Time in...

2 months ago

Solved


Return the middle element of an NxN square matrix where N is odd
Let's say you are given an NxN square matrix where N is always going to be an odd number: x = [ 1 2 3 4 5 6 7 8 ...

2 months ago

Solved


Sub-Diagonal Sum
Given a (m x n) matrix and a value r {1,-1}, change every element to the sum of the diagonal led by the element. r=1 > regular ...

2 months ago

Solved


Easy Sequences 72: Complete Graph
In Graph Theory, we say a graph is a Complete Graph, if all of its nodes are connected to evey other nodes in the graph. Example...

2 months ago

Solved


sinus de pulsation a
Ecrire une fonction sinat qui prend en entrée un vecteur t (de valeurs croissantes) et renvoie un vecteur y de de même dimensi...

2 months ago

Solved


Pay up
You live in a world where arbitrary denominations of currency exist. You owe your friend a sum of money denoted by s. However, i...

2 months ago

Solved


Définir une fonction creneau
Definr une fonction "creneau" qui prend en entrée un vecteur et renvoie la valeur 1 pour chaque élément positif du vecteur et...

2 months ago

Solved


Dominant Matrix - 01
A matrix is said to be diagonally dominant if for every row of the matrix, the magnitude of the diagonal entry in a row is large...

2 months ago

Solved


Magic Matrix
We are all familiar with the concept of magic matrix. In a magic matrix, the summation of all rows, columns and both diagonals...

2 months 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;...

2 months ago

Solved


Loja de tintas
Faça um programa para uma loja de tintas. O programa deverá receber o tamanho em metros quadrados da área a ser pintada. Conside...

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

2 months ago

Solved


Easy Sequences 87: Perfect Power Modular Residue of a Nested Sum-product Function
For a positive integer , we define the function , as follows: ; and for . He...

2 months ago

Solved


Jump Search - 01
Find the number of leaps you need to take to find an element in an array using the jump search algorithm. For example, a=[ 2,...

2 months ago

Solved


Multiplos 7
Escreva um programa que mostre todos os números entre 5 e 100 que são divisíveis por 7, mas não são múltiplos de 5. Os números o...

2 months ago

Solved


Tabuada
Dado um inteiro N, retorne um vetor contendo a tabuada de N de 1 a 10; ex: Tabuada(5) = [5, 10, 15, 20, 25, 30, 35, 40, 45, 50...

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

2 months ago

Solved


Juros Compostos
Faça uma função que receba um capital inicial (C), uma taxa de juros a ser aplicada (i) e um tempo (t) para qual será aplicado o...

2 months ago

Solved


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

2 months ago

Solved


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

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

2 months ago

Solved


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

2 months ago

Solved


Letras Maisculas
Dado uma string A, retorne apenas os caracteres maiúsculos de A Maiusculas('Hello World') = 'HW';

2 months ago

Load more