One day Christy has to distribute some chocolates to her colleagues. She is biased towards her friends and plans to
Category: Algorithm
Maximum Subarray Sum
Given a single dimensional array, find the maximum value, a contiguous subarray can have. Kadane’s Algorithm for finding the maximum
Hack the money
You are a bank account hacker.Initially you have 1 rupee in your account, and you want exactly N rupees in your account.You
Simran and stairs
Simran is running up a staircase with N steps, and can hop(jump) either 1 step, 2 steps or 3 steps
Counting Sort
Counting sort is a sorting algorithm that sorts the elements of an array by counting the frequency of each distinct
N-Queens
Given a chess board having cells (NxN), N number queens needs to placed on the board in such a way