解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


LCM

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

解決済み


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

4年弱 前

さらに読み込む