Skip to content
All Medium Articles
100 people standing in a circle in an order 1 to 100. No. 1 has a sword. He kills the next person (i.e. No. 2)… Read More
Given N jobs where every job is represented by following three elements of it.1. Start Time 2. Finish Time 3. Profit or Value AssociatedFind the subset of… Read More
Given an array arr[] of n integers, find the maximum that maximizes the sum of the value of i*arr[i] where i varies from 0 to… Read More
Given an array of integers, evaluate queries of the form LCM(l, r). There might be many queries, hence evaluate the queries efficiently.   LCM (l, r)… Read More
First round (online round,) It had some 15 mcq questions, most of it was technical, had questions from almost all CS subjects we learnt in college.… Read More
First round (online round) Few mcq questions -mostly techical (C, CPP, DS, OS, DBMS, etc..) and math aptitude; which also had programming question (the question… Read More
Given a number ‘n’, write a function that prints the last digit of n’th (‘n’ can also be a large number) Fibonacci number. Examples :   Input… Read More
Introduced in Java 8, the Stream API is used to process collections of objects. A stream is a sequence of objects that supports various methods… Read More
The Longest Bitonic Subsequence problem is to find the longest subsequence of a given sequence such that it is first increasing and then decreasing. A… Read More
Round 1: (Online in Hackerrank) 20 MCQ questions based on outputs, DS, OS, DBMS.Hey geek! It's time to become a success story instead of reading… Read More
Ank and Mini play a game of tick-tack-toe. In this game, the players try to get three circles or three crosses in a row (horizontal,… Read More
Prerequisites: BIT, DFS Given a rooted tree T, with ‘n’ nodes, each node has a color denoted by the array color[](color[i] denotes the color of… Read More
Prerequisites: Minimax Algorithm in Game Theory, Evaluation Function in Game TheoryAlpha-Beta pruning is not actually a new algorithm, rather an optimization technique for minimax algorithm.… Read More
We have discussed flattening of a multi-level linked list where nodes have two pointers down and next. In the previous post, we flattened the linked… Read More
Given a N X N binary matrix, find the size of the largest ‘+’ formed by all 1s.Example:   Attention reader! Don’t stop learning now. Get… Read More
Round 1: (online in hackerrank) 20 MCQ questions based on outputs, OS, DBMS.Hey geek! It's time to become a success story instead of reading them.… Read More
Given a binary tree, print nodes of extreme corners of each level but in alternate order.Example:   Become a success story instead of just reading about… Read More
Telephonic  Production level code in any language was expected with unit test. Collabedit link was shared before interview  Hey geek! It's time to become a success… Read More
numeric header in C++ STL | Set 1 adjacent_differenceTake a step-up from those "Hello World" programs. Learn to implement data structures like Heap, Stacks, Linked… Read More
Given an array of integers, replace every element with the least greater element on its right side in the array. If there are no greater… Read More