# Tag: Data Structures

### 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…

### 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…

### 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…

### 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…

### Data Structures & Coding Interviews

In today’s blog post, I will be discussing the importance of data structures while preparing for the coding interviews. WHY LEARN DATA STRUCTURES What’s the point? Why should I learn data structures? As an interviewer, it tells me how deep is your understanding of Computer Science Fundamentals. Do you know the right tool (data structure)…

### Mindset for Cracking Technical Interviews

In today’s blog post, I will be discussing one of the most common issue I see when I coach students on how to crack technical interviews. It’s the mindset! In the beginning, when a candidate starts, he or she is all motivated to learn the techniques to crack technical interviews. They just want the higher…