In mathematics, Pascal's Triangle is a triangular array of binomial coefficients. This exercise is the same as the previous exercise. Deliberately did not use the name Pascal's Triangle a…
Observe the pattern of numbers given below. 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 1 6 15 20 15 6 1 The pattern has the following properties. Assuming that th…
Maximum Subsequence Sum is one of the classic problems found in the Data Structures & Algorithms books. Given a one dimensional array of integers, the task is to find a contiguous subarray wit…
Given a non-negative number n find the nth Fibonacci Number . The Fibonacci Sequence is the series of numbers: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, ... The 0th number is 0. 1st number is 1. Therea…
Given a non-negative number n find its factorial without using Recursion . n! = 1 * 2 * 3 * 4 * ...... n-2 * n-1 * n Also, implement using a recursive method. Factorial can be recursively expr…
Lok Sabha 2019 results handing BJP and NDA a resounding victory could be a major Inflection Point in Indian National Politics mainly for two reasons. 1. This time the Indian electorate voted for …
The Eight Queens problem is the problem of placing eight queens on an 8×8 chessboard such that none of them attack one another (no two are in the same row, column, or diagonal). When the solve() m…
Mamata Banerjee's rallying cry of "Parivartan" (Change) stormed her into power as Chief Minister of West Bengal ousting the three decades of continuous misrule of the Left parties in …
In early 2000 I used to consult for several software companies. I noticed that though the young software engineers were smart, their grip on the Computer Science fundamentals was not thorough and st…
I have heard several speeches from Narendra Modi, the Indian Prime Minister-elect. He definitely mesmerizes the crowd with his excellent extempore oratory skills. He covers a wide range of topics, s…
Congress was totally clueless in reading the pulse of the electorate during Indian Lok Sabha 2019 elections. The Congress party's cluelessness was further magnified when it started holding talks…
Post the Lok Sabha 2019 Indian electoral debacle, the Congress Working Committee (CWC) met yesterday. After the meeting, in the CWC press conference, it was announced that Rahul Gandhi had offered t…