All Medium Articles
Three friends started running together on a circular track at 8:00:00 am. Time taken by them to complete one round of the track is 15… Read More
A number leaves remainders 1, 4 and 7 on being divided successively by 3, 5 and 8 respectively. What is the product of the remainders… Read More
Given a graph and a source vertex in the graph, find the shortest paths from the source to all vertices in the given graph.We have… Read More
This is one of the most used techniques in competitive programming. Let us first consider below simple question. What is the minimum time complexity to… Read More
A dynamic array is an array that can grow, resize itself, contains a dynamic table, which is mutable in nature, or an array list is… Read More
Which of the following DMA transfer modes and interrupt handling mechanisms will enable the highest I/O band-width?   (A) Transparent DMA and Polling interrupts (B)… Read More
Given a boolean function f (x1, x2, …, xn), which of the following equations is NOT true   (A) f (x1, x2, …, xn) =… Read More
Please see Set 1 for Execution, Stages and Performance (Throughput) and Set 3 for Types of Pipeline and Stalling.   Dependencies in a pipelined processor There… Read More
Consider a n x n grid with indexes of top left corner as (0, 0). Dyck path is a staircase walk from bottom left, i.e.,… Read More
Background : In a flow network, an s-t cut is a cut that requires the source ‘s’ and the sink ‘t’ to be in different… Read More
Given a fraction, find a recurring sequence of digits if it exists, otherwise, print “No recurring sequence”. Examples: Input : Numerator = 8, Denominator =… Read More
Given N jobs where every job is represented by following three elements of it. Start TimeFinish TimeProfit or Value Associated Find the maximum profit subset… Read More
Given postorder traversal of a binary search tree, construct the BST. For example, if the given traversal is {1, 7, 5, 50, 40, 10}, then… Read More
Given n items of different weights and bins each of capacity c, assign each item to a bin such that number of total used bins… Read More
Given a string, we need to print all possible palindromes that can be generated using letters of that string. Examples: Input: str = "aabcb" Output:… Read More
All the permutations of a word when arranged in a dictionary, the order of words so obtained is called lexicographical order. in Simple words, it… Read More
Hacker Rank round 13 MCQ on java and android Find count of given words in the list of sentences Skype round (interview started late) 2… Read More
Background : Catalan numbers are defined using below formula:  Catalan numbers can also be defined using following recursive formula.  The first few Catalan numbers for… Read More
First shortlisted based on CGPA >= 7.5 and ONLY CSE student allowed to sit in interview. They(D-E-Shaw) had 2 phases of selection procedure. FIRST PHASE… Read More
Given two coins of denominations “X” and “Y” respectively, find the largest amount that cannot be obtained using these two coins (assuming an infinite supply… Read More