Feeds
문제를 풀었습니다
Easy Sequences 3: Prime 44-number Squares
The positive integers 62 and 238 are related. Their squares (3844 and 56,644) both end in '44'. In fact, 62 and 238 are the 3rd ...
대략 2개월 전
문제를 풀었습니다
Leyland Primes
A Leyland Number is defined as a number of the form - x^y + y^x, or, x^y - y^x (x,y)>1 Given an array of numbers(>1), check...
대략 2개월 전
문제를 풀었습니다
List the two-bit primes
Each year at Christmas, my father-in-law and his partner send me the Puzzle Mania section from the New York Times. This year’s e...
대략 2개월 전
문제를 풀었습니다
Determine whether a number is a Zeisel number
Do you know what is interesting about the number 1729? That’s right: it’s the third Zeisel number, a number given by , where ...
2개월 전
문제를 풀었습니다
Find Logic 14
Guess the Logic! logic(1) = 100 logic(2) = 96 logic(3) = 105 logic(4) = 89 logic(5) = 114 Make a function logic(x) which w...
2개월 전
문제를 풀었습니다
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개월 전
문제를 풀었습니다
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개월 전
문제를 풀었습니다
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개월 전
문제를 풀었습니다
Find The area of the square
Given that the length of the side of a square is x, find the area.
2개월 전
문제를 풀었습니다
Array Concatenation (1)
Given two matrices, a and b, concatenate the two matrices horizontally, i.e., the number of columns of the result should be equa...
2개월 전
문제를 풀었습니다
TingTing
Output logical "true" if the input is the answer to luck and money$$$. Otherwise, output logical "false".
2개월 전
문제를 풀었습니다
Sequencing Odd Even numbers
Given an input value n, create a vector which contains all odd numbers & even numbers centered around mean of vector. If the me...
2개월 전
문제를 풀었습니다
Highly divisible triangular number (inspired by Project Euler 12)
Triangular numbers can be calculated by the sum from 1 to n. For example, the first 10 triangular numbers are: 1, 3, 6, 10, ...
2개월 전
문제를 풀었습니다
Sum All Positive Elements
Output a scalar that is equal to the sum of all positive elements in a given vector/matrix. For Example: The sum of all positi...
2개월 전
문제를 풀었습니다
Remove the diagonal of a square matrix
Some Cody problems ask solvers to remove columns (e.g., CP 7), and others ask solvers to remove rows (e.g., CP 44033). Write a...
2개월 전
문제를 풀었습니다
Sum along each diagonal of a matrix
Write a routine that returns the sums along the diagonals of a given matrix, A, where the first diagonal is the bottom left corn...
2개월 전
문제를 풀었습니다
Moyenne pondérée
Ecrire une fonction qui prend en entrée un vecteur P et un vecteur V et calcule la moyenne pondérée MP des élements vi d'un vec...
2개월 전
문제를 풀었습니다
Palindrome Checker
Check to see if a given string is a palindrome (a word, phrase, or sequence that reads the same backward as forward). Output sh...
2개월 전
문제를 풀었습니다
The Prime Days of Christmas
On the first day of Christmas my true love sent to me partridges in a pear tree. On the second day of Christmas my true love s...
2개월 전
문제를 풀었습니다
Final Stone Weight
You are given an array with weights of stones. The objective is to determine the weight of the final stone remaining after all c...
2개월 전
문제를 풀었습니다
Add non-triangular numbers
The nth triangular number is the sum of the first n positive integers. The sequence of triangular numbers starts 1, 3, 6, 10, 15...
2개월 전
문제를 풀었습니다
Maior Primo
Dado um valor inteiro N, qual o maior valor primo <= N MaiorPrimo(5) = 5; MaiorPrimo(10) = 7;
7개월 전
문제를 풀었습니다
Vector indexing: lower than mean
Find indices of values in a vector lower than the mean of the vector
7개월 전