Top 10 algorithms in Interview Questions | Set 2 Last Updated : 16 Jun, 2024 Summarize Comments Improve Suggest changes Share Like Article Like Report In the previous post, top 10 algorithms/questions on different topics that are most asked in interviews is discussed. In this post, top 10 problems on the rest of data-structures or algorithms are covered. If you are preparing for a coding interview, going through these problems is a must. Topics: Stack & QueueTree / Binary Search TreePrefix Matching and Sliding WindowHeapsGreedy AlgorithmsTrieStack & Queue Next greater elementBalanced parenthesisStock Span ProblemImplement a stack using two queuesImplement a queue using two stacksImplement 2 stacks in an arrayImplement k stacks in an arrayImplement a special stack that supports getMin() in O(1) timeImplement LRU CacheReverse a StackTree / Binary Search Tree Check if a Binary Tree is BSTConvert a given Binary Tree to Doubly Linked ListInorder Tree Traversal without recursion and without stackLevel order traversal line by lineConstruct Tree from given Inorder and Preorder traversalsConstruct Full Binary Tree from given preorder and postorder traversalsFind distance between two nodes of a Binary TreeTwo nodes of a BST are swapped, correct the BSTPrint Left View of a Binary TreeFlatten a binary tree into linked listPrefix Matching and Sliding Window Equilibrium IndexSubarray with 0 sumSubarray with same number of 1s and 0s in a binary arrayMaximum sum of a subarray of size kDistinct elements in every window of size kSubarray with given sum in an array of positive numbersMinimum element in every window of size kN-bonacci NumbersLongest subsequence of the form 0*1*0* in a binary stringLongest Span with same Sum in two Binary arraysHeaps Median in a stream of integers (running integers)K’th largest element in a streamSort a nearly sorted (or K sorted) arrayk largest(or smallest) elements in an arrayMerge k sorted arraysExternal SortingHuffman DecodingMinimum sum of two numbers formed from digits of an arrayFind smallest range containing elements from k listsCheck if a given Binary Tree is HeapGreedy Algorithms Minimum Number of Platforms Required for a Railway/Bus StationJob Scheduling with two jobs allowed at a timePrim’s Minimum Spanning Tree (MST)Dijkstra’s shortest path algorithmEfficient Huffman Coding for Sorted InputFractional Knapsack ProblemGraph ColoringGreedy Algorithm to find Minimum number of CoinsMinimize Cash Flow among a given set of friends who have borrowed money from each otherConnect n ropes with minimum costTrie Find duplicate rows in a binary matrixWord Break ProblemLongest Common Prefix in given set of stringsFind the k most frequent words from a fileFind shortest unique prefix for every word in a given listLongest prefix matchingFind maximum XOR of given integer in a stream of integersAuto-complete feature using TrieImplement a Phone DirectoryCount of distinct substrings of a string using Suffix Trie Comment More infoAdvertise with us Next Article Top 10 algorithms in Interview Questions | Set 2 H harsh.agarwal0 Follow Improve Article Tags : Competitive Programming Interview-Questions Similar Reads Meesho Interview Experience | On-Campus 2021 Meesho visited our campus for hiring a full-time role. The drive consisted of 4 rounds. Round 1: This was a coding round that consisted of 3 coding questions and some MCQs. MCQs were based on computer science subjects like computer networks, databases, and operating systems, and also c++/java concep 3 min read Top 10 Algorithms in Interview Questions Getting ready for a tech job interview? Algorithms are really important! Companies often ask questions that require problem-solving skills. In this article, we'll look at the top 10 algorithms commonly used in interviews. Each algorithm is like a powerful tool in your problem-solving toolbox. Knowin 3 min read Commonly Asked Algorithm Interview Questions For tech job interviews, knowing about algorithms is really important. Being good at algorithms shows you can solve problems effectively and make programs run faster. This article has lots of common interview questions about algorithms. Commonly Asked Algorithm Interview Questions Table of Content C 15+ min read Accolite Interview Experience | On Campus - NIT All rounds of interviews were held on Skype due to the COVID-19 situation, M.Tech - CSE. Round 1 (Written 30 min): This round was conducted on Eduthrill. Around 30 MCQs on OS, DBMS, Networks, Aptitude, Computer Architecture, etc. were supposed to be done in 30 minutes. (60% score is minimum for shor 3 min read Yatra.com Interview | Set 2 I appeared for yatra.com interview process. In each round, I have to discuss the problem with interviewer and to tell him my approach. Also they asked About complexity of each solution and also stressed to optimize it Round 1 -> 1. Given a Matrix with 0's and 1's in sorted order. design an algorithm 2 min read Like