Write c^3 as sum of two squares a^2+b^2
write c^3 as sum of two squares a^2+b^2. a and b must be integer and greater than zero.
For example
5^3 = 2^2 + 11^2
5...
Pernicious Anniversary Problem
Since Cody is 5 years old, it's pernicious. A <http://rosettacode.org/wiki/Pernicious_numbers Pernicious number> is an integer w...
8年以上 前
解決済み
Energy of a photon
*⚛ ☢ ⚛ ☢ ⚛ ☢ ⚛*
Given the frequency F of a photon in giga hertz.
Find energy E of this...
8年以上 前
解決済み
How to subtract?
*± ± ± ± ± ± ± ± ± ± ±*
* Imagine you need to subtract one...
8年以上 前
解決済み
The 5th Root
Write a function to find the 5th root of a number.
It sounds easy, but the typical functions are not allowed (see the test su...
Calculate the sum of two polynomials
Calculate the sum of two polynomials if they are written in notation with their coefficients.
example:
a=[3 4 5];
b=[...
0<=x<=pi?
Check whether the given angle is between zero and pi.
Return logical true or false.
9年弱 前
解決済み
convert between ascii and characters
I have seen multiple problems like this but none of them have a robust test suite associated with them.
The first input C is ...
9年弱 前
解決済み
Max Change in Consecutive Elements
If an array is given as input then find the index of consecutive elements that represent maximum change.
Example:
Input ...
約9年 前
解決済み
Find out sum and carry of Binary adder
Find out sum and carry of a binary adder if previous carry is given with two bits (x and y) for addition.
Examples
Previo...
Oh Zero Zero Zero!!!
Hello all,
So you have to find the largest section of zeros in a vector and then find the length of those zeros and there start...
約9年 前
解決済み
Replace Nan!
Replace Nan in the given vector(v) with 9999.
約9年 前
解決済み
Hack not this Test Suite you will
Another Hack 10000 Challenge.
I am thinking of an integer between 1 and 10000.
Return a value between 1 and 10000.
I ma...
約9年 前
解決済み
normalize group of numbers to integers
Hi guys!
I have a group of 4 numbers x,y,z,w which comes from 4 integers multiplied with a common factor. [x,y,z,w] = c [i,j,k,...