All Medium Articles
Consider the following Boolean expression for F: F(P, Q, R, S) = PQ + P'QR + P'QR'S The minimal sum-of-products form of F is (A)… Read More
Following are different ways to create a 2D array on heap (or dynamically allocate a 2D array).In the following examples, we have considered ‘r‘… Read More
Given an n x n matrix, where every row and column is sorted in non-decreasing order. Find the kth smallest element in the given 2D… Read More
Write a C function ftoa() that converts a given floating-point number or a double to a string. Use of standard library functions for direct conversion… Read More
A suffix array is a sorted array of all suffixes of a given string. The definition is similar to Suffix Tree which is compressed trie… Read More
Amazon SDE1 Off campus Written RoundBecome a success story instead of just reading about them. Prepare for coding interviews at Amazon and other top product-based… Read More
I am currently in my 8th semester . I recently attended the off campus drive for SDE1 at Amazon. Here’s my journey. Round 1:- (Written)… Read More
Given two square matrices A and B of size n x n each, find their multiplication matrix. Naive Method Following is a simple way to multiply… Read More
Given an unsorted integer (positive values only) array of size ‘n’, we can form a group of two or three, the group should be such… Read More
Recruitment Drive – Delhi (22 March 2014) Position SDE-2 1st Round – Coding and Algo (50 Minutes)Become a success story instead of just reading about… Read More
Given a binary tree, print it vertically. The following example illustrates vertical order traversal.   1 / \ 2 3 / \ / \ 4 5… Read More
Experience : 8 months First Round : Held on interview street .Aptitude + technical (standard pattern and questions)Hey geek! It's time to become a success… Read More
Online Round Coding Question: Given a float number 7.64, convert it into the string WITHOUT using any inbuilt function/library. for eg: input float no.: 7.64… Read More
Company: Flipkart Profile: SDE 1 Experience: 7 months   Hey geek! It's time to become a success story instead of reading them. Check out our most renowned DSA… Read More
You are given a free running clock with a duty cycle of 50% and a digital waveform f which changes only at the negative edge… Read More
Given a string and a positive integer d. Some characters may be repeated in the given string. Rearrange characters of the given string such that… Read More
Given an array of numbers of size n. It is also given that the array elements are in range from 0 to n2 – 1.… Read More
Consider the polynomial p(x) = a0 + a1x + a2x2 + a3x3 , where ai ≠ 0 ∀i. The minimum number of multiplications needed to… Read More
Suppose that a robot is placed on the Cartesian plane. At each step it is allowed to move either one unit up or one unit… Read More
In a token ring network the transmission speed is 10^7 bps and the propagation speed is 200 metres/micro second. The 1-bit delay in this network… Read More