© 2023 Hashnode
#interview
Welcome to the first article in this series covering the most popular technical interview questions on LeetCode. Today we will be solving Two Sum, which is rated "Easy" and has an acceptance rate of just under 50%. The goal of the problem i…
One algorithm that can be used to count the number of occurrences (or frequency) of each element in a sorted array is called the "Two Pointers" algorithm. Here's how it works: Initialize two pointers, i and j, to the first element of the a…
A local minimum in an array is a value that is smaller than its neighbors. To find local minima in an array, you can iterate through the array and compare each element to its neighbors. Here's an example of how you can implement this in Jav…
One way to sort an array containing zeroes, ones, and twos in O(n) time complexity is by using a variation of the counting sort algorithm. The idea is to count the number of zeroes, ones, and twos in the array, and then use that information…
The post was originally published on ExplainThis with title 《My Amazon Frontend Engineer (FEE) interview experience》 This is a blog post on my interview experience with Amazon in summer 2022. The rol…
Hey!!👋Folks👩💻 In this article I'm sharing some most and commonly asked javascript interview questions. And in my opinion if you can answers these questions that means you already know JavaScript w…
In this post, we will discuss some of the ways by which we can implement LRU cache. This post assumes that you have the basic knowledge of an LRU cache. So, we would focus on the implementation side. …
The conversations I had before and during an interview. Please excuse me, as I express to you, my woes. Looking for a job as a blind person is not easy, and society constantly disparaging me as a freeloader, who contributes nothing doesn’t …
The post was originally published on ExplainThis with title 《What is the difference between JavaScript null, undefined and undeclared?》 undefined means that the value has not yet been defined, so whe…
"Cracking the Coding Interview" by Gayle Laakmann McDowell is a must-read for any software engineer preparing for a job interview. This book is packed with helpful tips, strategies, and real-world exa…