
Colored Balls
Introduction Hello all, all of us have curiosities and we look on internet to find informations about it. In last time I just reflected over this topic. Today I am gonna show you...
Introduction Hello all, all of us have curiosities and we look on internet to find informations about it. In last time I just reflected over this topic. Today I am gonna show you...
"Tweedle-Dee and Tweedle-Dum are in a fierce battle playing even-odd nim. This novel game is played on N heaps. Heap i contains ai stones. Like normal nim, Tweedle-Dee and Tweedle-Dum alternate taking a positive...
Hello all, after a long vacation, I come back with some new problems and new algorithms. Here is one for begginers and not only: "Mr. Algorithm and his little brother are playing with sticks....
Given a square matrix of size , calculate the absolute difference between the sums of its diagonals. Input Format: The first line contains a single integer, . The next lines denote the matrix's rows,...
Mr. Algorithm have an integer number, which he want to reverse by following steps: Convert the number into binary string. Reverse binary string. Convert the reversed binary string back to integer. Can you...
Hello again. Here is another optimized algorithm to get number of divisors of a number! Check bellow button (PayPal button), only 1 euro! P.S: Explanation of algorithm is inside file! ...
Statement: Mr. Algorithm and his friends like to party but all the party spots are across the bridge from where Mr. Algorithm live. The bridge is quite old unsafe, so only two people at...
In mathematics, the greatest common divisor(gcd) of two or more integers, when at least one of them is not zero, is the largest positive integer that divides the numbers without a remainder(amount left...