Gelöst


Matrix Quadrants
Write a function that takes N as the input, and outputs a matrix whose upper-left (NxN) quadrant contains all ones, the lower-ri...

fast 4 Jahre vor

Gelöst


Find the minimum of the column-maximums of a matrix
Given a matrix A, find the maximum value of each column, then return the smallest of those maximum values (ie return the minimum...

fast 4 Jahre vor

Gelöst


Find Closest Constant
Given a number x, return the value that is closest to x from this list of constants: 0, 1, , e, , (also known as ). For exampl...

fast 4 Jahre vor

Gelöst


Number of Circles in a Number
Given a number, return the number of closed 'circles' in the base 10 numerical representation. Note: the number 4 has no circ...

fast 4 Jahre vor

Gelöst


Pseudo Square Root (Inspired by Project Euler 266)
Shamelessly copied from the Project Euler page for Problem 266: ------------- The divisors of 12 are: 1,2,3,4,6 and 12. T...

fast 4 Jahre vor

Gelöst


Return the sequence element II
Given positive integers x and n, return a positive integer, y, which is the nth term in the <https://en.wikipedia.org/wiki/Juggl...

fast 4 Jahre vor

Gelöst


return row and column indices given 2 values which define a range
Inspired by problem <http://www.mathworks.co.kr/matlabcentral/cody/problems/856-getting-the-indices-from-a-matrice> Inputs: - ...

fast 4 Jahre 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;...

fast 4 Jahre vor

Gelöst


Ordinal numbers
Given an integer n, return the corresponding ordinal number as a character string. For example, ord(1)='1st' ord(2)=...

fast 4 Jahre vor

Gelöst


Basic Mathematics 3
It was announced during a Robotics Competition kick off that two of the trickiest scoring objects are: soup cans, and beach ball...

fast 4 Jahre vor

Gelöst


Basic Mathematics 4
Team #1 is in first place but only one point higher than Team #2. The sum of their two scores is N. What are each team’s scores...

fast 4 Jahre vor

Gelöst


Determinante Matriz 3x3
Dada uma matriz 3x3, calcule o seu determinante.

fast 4 Jahre vor

Gelöst


Determine the Anti-diagonal of a Magic Square
Determine the anti-diagonal (crossing from top right to lower left) of a magic square of size n. Examples If n = 3 y =...

fast 4 Jahre vor

Gelöst


Rule of mixtures (composites) - upper bound
The <http://en.wikipedia.org/wiki/Rule_of_mixtures rule of mixtures> is used in the mechanical design of composite structures to...

fast 4 Jahre vor

Gelöst


Congruent
Given two numbers, check whether they are congruent to each other or not for a particular value N.

fast 4 Jahre vor

Gelöst


LCM

fast 4 Jahre vor

Gelöst


Fun with matrix
Design a sample matrix as given in the test cases

fast 4 Jahre vor

Gelöst


Largest Prime Number
Given a matrix X, find the largest prime number in X.

fast 4 Jahre vor

Gelöst


Reverse the input
Given an input (n), produce an output in the reverse order with out using string variables or string function. Example x ...

fast 4 Jahre vor

Gelöst


determine skid distance of car
Determine the distance a car skids to a stop given initial velocity (v) and time (t).

fast 4 Jahre vor

Gelöst


Combined Ages 3 - Non-symmetric, n ≥ 3
Pursuant to the previous two problems ( <http://www.mathworks.com/matlabcentral/cody/problems/42382-combined-ages-1-symmetric-n-...

fast 4 Jahre vor

Gelöst


Conta Vogais
Dado uma string A, retorne a quantidade de vogais de A; ContaVogais('Hello World') = 3

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre 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...

fast 4 Jahre vor

Gelöst


Número Primo
Dado um número inteiro N, retorne 'primo' se o número for um número primo ou 'não primo' caso contrário. Primo(5) = 'primo'; P...

fast 4 Jahre vor

Gelöst


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

fast 4 Jahre 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'; ...

fast 4 Jahre vor

Gelöst


Triangulo Retângulo
Dados o tamanho das 3 arestas (A, B, C) de um triângulo, retorne true se o triângulo for um triângulo retângulo. TrianguloRetan...

fast 4 Jahre vor

Mehr laden