A file is a collection of related information that is recorded on secondary storage. Or file is a collection of logically related entities. From user’s… Read More

Given an array of n elements. The task is to count the total number of indices (i, j) such that arr[i] = arr[j] and i… Read More

We have given numbers in form of triangle, by starting at the top of the triangle and moving to adjacent numbers on the row below,… Read More

National Institute of Electronics & Information Technology (NIELIT), erstwhile known as the DOEACC Society, is an autonomous scientific society under the administrative control of Ministry… Read More

Given a 2-D matrix A[N][M] where A[i][j] denotes the points available on this cell. Two persons, P1 and P2, start from two corners of this… Read More

For any given two numbers n and m, you have to find n*m without using any multiplication operator. Examples : Input: n = 25 , m… Read More

This is not a new sorting algorithm, but an idea when we need to avoid swapping of large objects or need to access elements of… Read More

Given two strings, the task is to find if they are only less than or equal to k edit distance apart. It means that strings… Read More

We have discussed bucket sort in the main post on Bucket Sort . Bucket sort is mainly useful when input is uniformly distributed over a range.… Read More

The exec family of functions replaces the current running process with a new process. It can be used to run a C program by using… Read More

I got a call from an consultant for recruitment drive in Delhi. First round (1 hour 30 minutes): online writtenIt was online written round on… Read More

Given three positive integers a, b and n. Consider a list that has all multiples of ‘a’ and ‘b’. the list is sorted and duplicates… Read More

In this article we are discussing the SLR parser, CLR parser and LALR parser which are the parts of Bottom Up parser. SLR Parser The… Read More

In this article, we are discussing the Bottom Up parser. Bottom Up Parsers / Shift Reduce Parsers Build the parse tree from leaves to root.… Read More