RECENT INTERVIEW QUESTIONS

Right view of a binary tree

Write code to print the right-view of a binary tree. Right-view of the tree is the nodes visible when the tree is seen from the right side. If there are two nodes at the same level, then only the right-most node will be visible in the right-view as shown below:

Posted in: Algorithms,
Left view of a binary tree

Write code to print the left-view of a binary tree. Left-view of the tree is the nodes visible when the tree is seen from the left side. If there are two nodes at the same level, then only the left-most node will be visible in the left-view as shown below:

Posted in: Algorithms,
Sort in C++ standard template library

Two elements of complex data types are not directly comparable. Consider the student structure defined as below struct Student { int rollNo; char name[25]; char grade; }; Student arr[MAX_NUM_STUDENTS]; Objects of Student type are not directly comparable. To sort array arr, we need to specify how one student compares with another student. If there are […]

Posted in: Algorithms, C++,
Feedback for Engineering colleges

I visit many colleges and universities (mostly technical). Following is my feedback:

Posted in: Articles,
Check if a Tree is Almost Complete Binary Tree

Given a pointer to the root node of the tree, write code to find if it is an Almost Complete Binary Tree or not? A Binary Tree of depth d is Almost Complete iff: The tree is Complete Binary Tree (All nodes) till level (d-1). At level d, (i.e the last level), if a Node […]

Posted in: Algorithms,
HashMap performance improvement in Java 8

What improvement has java-8 made that performance of HashMap.get() function call is fast by 20% in Java-8.

Posted in: Java, Language,
Separate Chaining: Hashing collision handling technique

It is almost impossible to design a generic hash system without collision. In case of collision, it need to be handled. There are multiple ways of handling collision. Separate chaining is one of such techniques.

Posted in: Algorithms,
Birthday Paradox (Birthday Problem)

You may solve the simple probability, “Given a set of n randomly chosen people, what is the probability of two people having same birthday?” You may also solve,  “At least how many people need to be picked to make the probability 100% that at least two of them have same birthday?” Answer to the second question is […]

Posted in: Logic, Quantitative Aptitude,
Hashing introduction

Let us design a data structure in which we want to store numbers (taking it for simplicity, else it can be anything). We want to minimise the time taken by the following three operations: Insertion, time taken to insert a new value. Deletion, time taken to remove an existing value. Searching, time taken to search […]

Posted in: Uncategorized,
Medicine tablet (Pill) taking puzzle

Doctor gave you two types of medicine tablets (pils) A and B, and asked you to take one from each daily. The two tablets are in different bottles and look exactly same One day, while taking the pills, you open Bottle-A and tap one pill out in your hand. Then you open the second bottle to […]

Posted in: Logic, Puzzles,

RECENT VIDEOS

COURSES OFFERED

Big-O

Comprehensive course covering everything needed to crack the interviews of companies like Google, Facebook, Microsoft, Amazon, etc.

  • Duration: 45 days
  • Mode: Online
  • Classes: Daily
  • Test: Daily

Campus Ladders

Prepare for best placements while in college. Three parallel tracks under mentorship of Industry Expert

  1. Core Computer Science Concepts
  2. Advance Technology
  3. Logic, Aptitude, Puzzle Solving
  • Duration: 3 Months

2-days Workshop

This workshop is a quick brush up and last minute revision of all the things that each must be prepared with, starting from how to improve your resume to the strategy used to prepare and scope of each topic for written test and interviews.

  • Duration: 15 hrs

2 hrs Free Seminar

Student will not just get all the questions answered about the scope and depth of topics to be covered for interviews of different companies, but will also have lot of stuff on how to improve resume and answer the HR questions.

  • Duration: 2hrs

ADVANTAGE RITAMBHARA

BEST TEACHERS

We have best of trainers from across the world who are in decision making of top companies and passionate about technology.

GREAT CONTENT

Our content is created by subject experts from Industry.  They are ones who define the selection process of companies.

ABLE MENTORS

Approachable, empowering and genuine mentorship from top performers of industry to set your career on right track.

GET A SEMINAR IN YOUR COLLEGE FOR FREE

ATTEND OUR WEEKEND WORKSHOP ON CRACKING CODING INTERVIEWS