Looking for good programming challenges?

Use the search below to find our solutions for selected questions!

Archive for December 2016

Implement a ceil() function

In this post I will explain a less intuitive approach of implementing a ceil() function in Java, that is faster than known comparison approaches. A few known facts Fact 1 Dividing two integers and in Java will always floor the result: int a, b; int ans = a/b; // is . . . Read more

Mr. Twotwo challenge

Mr. Twotwo as the name suggests is very fond powers of . Moreover he also has special affinity to number . He is known for carrying quirky experiments on powers of . One day he played a game in his class. He brought some number plates on each of which . . . Read more