已解决


Reduce the logic
We have three logical input, x,y and z. The output is: y = ((x&y)|z)&((z|x&y)|(z&y|x))|((x&z)|z)&((y|x&z)|(z&x|y))|(x|y|z) ...

8 years 前

已解决


This is just like your weight :)
Imagine your weight as a sawtooth wave appended with a slope It varies yet the trend is increasing :) Decode the values throug...

8 years 前

已解决


Add the odd numbers
Add only the odd numbers of x example: x = [1 2 3 4 5] the positive numbers are: 1 3 5, so their sum is 9

8 years 前

已解决


Bae Slap Counter LOL XD
How many times did your bae had slapped you? Create a formula counts how many times you are slapped

8 years 前

已解决


Non trivial identities - linear system
Return x by solving a linear system.

8 years 前

已解决


Back to Basics
Dot product of vectors. Given two vectors A and B, calculate their dot product. A=[1 2 3]; B=[3 2 1]; C=10;

8 years 前

已解决


Add Me To Death (Sum sum sum)
Given certain vector, sum of the input vector, get the sum of 2 adjacent numbers in the input, and sum of the output vector (wh...

8 years 前

已解决


String revert
Revert all words in a sting x for example, if x = 'this is a sentence' then y should be 'sentence a is this'

8 years 前

已解决


Counting votes
x is a vector of votes, e.g. x=[1 2 3 2 2 1 3 2 1 2 2 2 2], who is the winner? 1,2,3?

8 years 前

已解决


Magnitude of a vector
Given a vector x, what is its magnitude?

8 years 前

已解决


X plus binary inverted x
Given a n-bits number x, what is the sum of x to the binary inverted version of x? (this might be more simple than you think :-)...

8 years 前

已解决


Non trivial identities - identity handle
Return x by handling the identity function.

8 years 前

已解决


Second smallest number
What is the second smallest number in x? example: x = [1 2 3 4 5 6 7 8 9] y = 2

8 years 前

已解决


reversed alphabet
create the alphabet in reverse

8 years 前

已解决


sum of ASCII
Given a string x, return the sum of all ASCII numbers of all characters. for example, if x='lala' ('l'-> 108, 'a'->97) then y...

8 years 前

已解决


Add the positive numbers
Add only the positive numbers of x example: x = [-2 -1 0 1 2 3] the positive numbers are: 1 2 3, so their sum is 6

8 years 前

已解决


99 bottels of beer...
(don't know the song? -> <https://en.wikipedia.org/wiki/99_Bottles_of_Beer>) Create the count down vector in y

8 years 前

已解决


Upper Matrix Mock
Given a vector v=[1 3 6 9 11], turn it into a matrix 'ramp' like so: m=[1 3 6 9 11; 0 1 3 6 9; 0 0 1 3 6; 0 0 0 1...

8 years 前

已解决


Sum of cubes
Write a program to determine sum of cubes of first n odd numbers.

8 years 前

已解决


Non trivial identities - round
Return x after rounding it.

8 years 前

已解决


Add the even numbers
Add only the even numbers of x example: x = [1 2 3 4 5] the positive numbers are: 2 4, so their sum is 6

8 years 前

已解决


Calculate vowel / consonant ratio of a string
Given a string, calculate the ratio of vowels to consonants for example : x = 'This is a very good Day!' y = 7/11

8 years 前

已解决


Nth root
Nth root of a number x

8 years 前

已解决


Basics - not so easy division
Please make a function whcih divides x/y, but pay attention for some exceptions with NaN,0,Inf. Sometimes return "ERROR" instead...

8 years 前

已解决


Vector Multiplication
Vector Multiplication of three matrix as shown in test cases.

8 years 前

已解决


Frequency Analysis of Text
Frequency analysis is a common task in cryptoanalysis. It is essentially counting the occurrences of alphabets (regardless of ca...

8 years 前

已解决


Performance - summation
Given a vector of natural numbers x = [1,2,3,...,N] compute the sum of its elements by not stressing the machine too much...

8 years 前

已解决


Non trivial identities - division
Return x after dividing it.

8 years 前

已解决


Non trivial identities - multiplication
Return x after multipying it.

8 years 前

已解决


Find the numeric characters in a string and return their index
Given a string S, return the index of any numeric characters. S = 'The next meeting will be held in 2 weeks.'; idx = fin...

8 years 前

加载更多