Continuous Subarray Sum

Given an integer array, find a continuous subarray where the sum of numbers is the biggest. Your code should return the index of the first number and ...
,  

Number of buildings facing the Sun

Problem: The heights of the building is given in an array. Buildings are facing the sun. You have to tell which all buildings will see the sunset. It...
,  

Find Nth Fibbonacci Number

Problem: Find Nth fibonacci number in O(logN) time complexity. Fibonacci Series: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, ... In mathematical ...
,  

Find Nth Magic Number

Problem: Given a number n, find out the nth Magic Number. Magic Numbers: A magic number is defined as a number which can be expressed as a power of...