Skip to content
All Medium Articles
In general, the array is considered a data structure for which size is fixed at the compile-time and array memory is allocated either from the… Read More
Consider the following log sequence of two transactions on a bank account, with initial balance 12000, that transfer 2000 to a mortgage payment and then… Read More
Inorder traversal of a Binary tree can either be done using recursion or with the use of a auxiliary stack. The idea of threaded binary… Read More
Constructor is a special member function that is automatically called by compiler when object is created and destructor is also special member function that is… Read More
Given a Perfect Binary Tree, reverse the alternate level nodes of the binary tree.  Given tree: a / \ b c / \ / \… Read More
Online round: 1) Program to check if two rectangles overlap. 2) Program to find if a given string, say S, contains another given string, say… Read More
In shellSort, we make the array h-sorted for a large value of h. We keep reducing the value of h until it becomes 1. An… Read More
I had three technical round of interviews. Two were telephonic followed by one skype interview with the team leader. 1st Round ->Whether a number is… Read More
Given a sorted array arr[] and a value X, find the k closest elements to X in arr[].  Examples:  Input: K = 4, X =… Read More
Given a string, check if it is a rotation of a palindrome. For example your function should return true for “aab” as it is a… Read More
In this article, we will be discussing smart pointers in C++. What are Smart Pointers, why, and how to use them properly? Pointers are used… Read More
  We have discussed an introduction to Constructors in C++. In this post, the copy constructor is discussed.What is a copy constructor? A copy constructor is… Read More
I recently cleared the Amazon SDE position. Through out my preparation GeeksforGeeks played great role, this is the only site which i referred/followed more than… Read More
Round 1: (1 h) ============== Q1. Design a Garbage collector like java. How would you detect depended reference loop? Hist : Class design, Cycle detection… Read More
The area of a circle can simply be evaluated using the following formula.    Area = pi * r2 where r is radius of circle… Read More
Transpose of a matrix is obtained by changing rows to columns and columns to rows. In other words, transpose of A[][] is obtained by changing… Read More
Like other product based companies, Microsoft also asks data structures and algorithms as part of their technical interview. Below is a of questions prepared from… Read More
Tower of Hanoi is a mathematical puzzle where we have three rods and n disks. The objective of the puzzle is to move the entire… Read More
Anudeep Nekkanti embodies the old adage – there is no substitute for talent. The 21-year-old coder from Samalkot (a small town near Vishkhapatnam) has landed… Read More
Given an array of integers and a number x, find the smallest subarray with sum greater than the given value.  Examples: arr[] = {1, 4,… Read More

Start Your Coding Journey Now!