Given an integer n, the task is to find two integers a and b which satisfy the below conditions: a % b = 0 a… Read More »

Given two positive integers N and K. Find the minimum number of digits that can be removed from the number N such that after removals… Read More »

In Software Engineering roles there are mainly two domain of people preparing for interviews: Freshers Working Professionals GeeksforGeeks brings a completely free Interview Preparation Course… Read More »

Given a string str and an integer array width[] where: width[0] = width of character ‘a’ width[1] = width of character ‘b’ … width[25] =… Read More »

Given a 4 x 4 matrix, the task is to interchange the elements of first and last columns and show the resulting matrix. Examples: Input:… Read More »

Given a string S of length N consisting of lowercase English letters and an integer K. Find the lexicographically smallest string T of length K,… Read More »

Given a string str, print reverse all words except the first and last words. Examples: Input : Hi how are you geeks Output : Hi… Read More »

Given X and Y coordinates of N points on a Cartesian plane. The task is to find the number of possible triangles with the non-zero… Read More »

Merkle tree also known as hash tree is a data structure used for data verification and synchronization. It is a tree data structure where each… Read More »

Given a string str representing a logical expression which consists of the operators | (OR) , & (AND) , ! (NOT) , 0 , 1… Read More »

The Liang-Barsky algorithm is a line clipping algorithm. This algorithm is more efficient than Cohen–Sutherland line clipping algorithm and can be extended to 3-Dimensional clipping.… Read More »

Hurrah! My TCS Digital interview results are out, and I thankfully made it. Having wanted to work in the field of Artificial Intelligence for a… Read More »

I was called at Noida office for a face to face interview. Round 1: Face to Face interview This round started with basic tell me… Read More »

Given an array arr, the task is to find the minimum sum of the elements of the array after applying the following operation: For any… Read More »

Given an integer N, the task is to count the number of triplets (a, b, c) such that a2 + b2 = c2 and 1… Read More »

Python is a great language for doing data analysis, primarily because of the fantastic ecosystem of data-centric Python packages. Pandas is one of those packages… Read More »

Given a number N. The task is to find the count of numbers which have N digits and even number of zeroes. Note: The number… Read More »

Given three integers N, A and B, the task is to find whether N is divisible by any number that contains only A and B… Read More »

Given an array of n integers. The task is to find the largest number which is a perfect square. Print -1 if there is no… Read More »

Given an array A[] of N integers. The task is to find the number of triples (i, j, k) , where i, j, k are… Read More »