single-loop

Count distinct elements in every window

Difficulty: Medium, Asked-in: Facebook, Amazon, Microsoft Key takeaway: An excellent problem to learn problem-solving using hashing and…

EnjoyAlgorithms

Find next greater elements in an array

Difficulty: Medium, Asked-in: Amazon, Microsoft Key takeaway: An excellent problem to learn problem-solving using stack. Let’s understand…

EnjoyAlgorithms

Roman to Integer

Difficulty: Easy, Asked-in: Amazon, Microsoft, Facebook, LinkedIn, Twitter, Zoho Key takeaway: A good mathematical problem to learn problem…

EnjoyAlgorithms

Reversing a Linked List

Difficulty: Easy, Asked-in: Microsoft, Amazon, Adobe, SAP Labs, Qualcomm Key takeaway The problem discussed here is one of the most asked…

EnjoyAlgorithms

The maximum difference between two elements

Difficulty: Medium, Asked-in: Facebook, Microsoft, Amazon, Hike, SAP Labs Key takeaway: An excellent coding problem to learn problem-solving…

EnjoyAlgorithms

Longest Consecutive Sequence

Difficulty: Hard, Asked-in: Google, Amazon, Linkedin, Walmart, Zoho Key takeaway: One of the best searching problems is learning problem…

EnjoyAlgorithms

Majority element in an array

Difficulty: Medium, Asked-in: Microsoft, Google, Amazon, Yahoo, Samsung Key takeaways A famous interview problem to learn problem-solving…

EnjoyAlgorithms

Maximum Subarray Sum

Difficulty: Medium, Asked-in: Facebook, Microsoft, Amazon, Morgan Stanley, Walmart, Flipkart, Hike, Oracle, Samsung, Snapdeal, Zoho Key…

EnjoyAlgorithms

n Repeated element in 2n size array

Difficulty: Medium, Asked-in: Google Key takeaway: An excellent problem to learn optimization using the mathematical approach. Sometimes…

EnjoyAlgorithms

Remove duplicates from sorted array

Difficulty: Easy, Asked-in: Google, Facebook, Microsoft, Amazon, Morgan Stanley Key takeaway: A famous modification problem to learn…

EnjoyAlgorithms

Sort an array of 0s, 1s, and 2s —Dutch national flag problem

Difficulty: Medium, Asked-in: Google, Facebook, Microsoft, Amazon, Paytm, Morgan Stanley, Hike, Walmart, Adobe, SAP Labs, Qualcomm Key…

EnjoyAlgorithms

Valid Mountain Array

Difficulty: Easy, Asked-in: Google, Amazon Key takeaway An excellent problem to learn problem-solving using a single scan Solution ideas are…

EnjoyAlgorithms

Sort an array in a waveform

Difficulty: Easy, Asked-in: Google, Amazon, Adobe Key takeaway: A good problem to learn the problem solving using sorting and single scan…

EnjoyAlgorithms

Find the minimum and maximum value in an array

Difficulty: Medium, Asked-in: Facebook, Microsoft Key takeaways A good coding problem to learn problem-solving using single scan and divide…

EnjoyAlgorithms

Find equilibrium index of an array

Difficulty: Easy, Asked-in: Amazon, Adobe, Hike Key Takeaway: Learn problem-solving and optimization using a single loop. Let’s understand…

EnjoyAlgorithms

Subscribe our Newsletter

Get well-designed application and interview centirc content on ds-algorithms, machine learning, system design and oops. Content will be delivered weekly.