Tag: Technical Interview

Add Numbers without using Plus operator – Interview Question

You have to write an algorithm that adds two numbers but you are not allowed to use the plus operator. The first thought that comes to my mind is using binary numbers. We need to think how we can do addition using binary numbers and what all are the steps you follow when you actually…
Read more

May 23, 2019 0

REST APIs And Their Versioning – Interview Question

What are REST APIs and how they are versioned. Let’s see how to answer this question in a technical interview. To begin with, what are REST APIs? The term REST stands for Representational State Transfer. Web services that adhere to REST architectural standards are called RESTful APIs. The REST APIs have a: i) A base…
Read more

March 5, 2019 0

Detect Loop In Linked List – Interview Question

To begin with you can draw a linked list on the whiteboard. A linked list has nodes in it which are connected to each other. Each node has two components: the value and reference to next node. The head node points to the first element of the linked list. The first thing that comes to…
Read more

January 18, 2019 0

2 Eggs – 100 Floors – Interview Question

You are given two Eggs and you are in a building with 100 Floors. You have to find the minimum floor from which if an egg is dropped, it won’t break. You have to do this in such a manner that your worst case number of attempts is minimized. Let’s find out how to answer…
Read more

November 30, 2018 0

Rotate Elements in Matrix – Interview Question

Rotate Elements in a Matrix. Let’s find out how to answer this question in a technical interview. Let’s take a sample matrix 1     2      3      4 5     6      7      8 9     10    11    12 13   14    15    16   If we rotate it, this is how it will look like 5      1      2      3 9    …
Read more

September 26, 2018 0

How HashTables Work

How do Hash Tables Work? To Begin with, what is a HashTable? Simply, it is a data structure that can map keys to values. Why is it important? You can look up the data in constant time i.e. O(1). How does it work? Internally, it’s an array of buckets or slots. There is something called Hash…
Read more

September 13, 2018 0

Find Triplet in Array that sum to a Given Value

In today’s post, I will be discussing an interview question related to arrays. This is similar to my previous post, in which I discussed how to find a pair with a given sum in an array. Suppose you are given an array. [1,9,7,6,3,5,2,8] And you are given a targetSum = 10. You have to find…
Read more

September 3, 2018 0

Find If Pair in An Array Exists That Sum to a Specific Value

In today’s post, I will be discussing an actual interview question related to arrays. Suppose, you are given an array like this: [2, 9, 5, 6, 3, 8, 2] and you have to find out if a pair exists in the array such that their sum equals 9. As a candidate, you need to understand…
Read more

August 17, 2018 0

Array Data Structure For Cracking Technical Interviews

In today’s blog post, i am discussing the basics of array data structure for cracking technical interviews. Array Data Structure An array is a collection of items stored in contiguous memory locations. All the items stored in an array are usually of same data type. Arrays are the oldest and most important data structure and…
Read more

August 7, 2018 0

Areas to Master for Cracking Technical Interviews as Experienced Engineer

In my previous post here, we discussed about the areas you need to master as a newbie. The areas like Algorithms, data structures, language specific questions, how web works and behavioral questions. As a senior engineer, you need to master all those areas plus a few more. Many times, people say that I am already…
Read more

July 26, 2018 0