Top Software Engineering Interview Questions with solutions

Most often asked interview question in product-based firm interviews. You can start by answering these questions on Leetcode for the initial face.
Try to answer these questions logically, don't spend more than 24 hours on a single question, and if you're having trouble, look for solutions online.
I attempt to answer these questions as well and offer my findings here.

EASY

206 Reverse Linked List
929 Unique Email Addresses
21 Merge Two Sorted Lists
543 Diameter of Binary Tree
121 Best Time to Buy and Sell Stock
202 Happy Number
160 Intersection of Two Linked Lists
70 Climbing Stairs
1 Two Sum
234 Palindrome Linked List
628 Maximum Product of Three Numbers
20 Valid Parentheses

Medium

811 Subdomain Visit Count
695 Max Area of Island
22 Generate Parentheses
1110 Delete Nodes And Return Forest
1698 Number of Distinct Substrings in a String
167 Two Sum II - Input Array Is Sorted
116 Populating Next Right Pointers in Each Node
348 Design Tic-Tac-Toe
236 Lowest Common Ancestor of a Binary Tree
394 Decode String
36 Valid Sudoku
729 My Calendar I
17 Letter Combinations of a Phone Number
200 Number of Islands
11 Container With Most Water
767 Reorganize String
881 Boats to Save People
994 Rotting Oranges
718 Maximum Length of Repeated Subarray
259 3Sum Smaller
253 Meeting Rooms II
622 Design Circular Queue
210 Course Schedule II
416 Partition Equal Subset Sum
56 Merge Intervals
207 Course Schedule
54 Spiral Matrix
34 Find First and Last Position of Element in Sorted Array
322 Coin Change
146 LRU Cache
79 Word Search
63 Unique Paths II
33 Search in Rotated Sorted Array
97 Interleaving String
3 Longest Substring Without Repeating Characters
15 3Sum

Hard

759 Employee Free Time
42 Trapping Rain Water
770 Basic Calculator IV
37 Sudoku Solver
25 Reverse Nodes in k-Group
295 Find Median from Data Stream
332 Reconstruct Itinerary
1537 Get the Maximum Score
68 Text Justification
2234 Maximum Total Beauty of the Gardens
44 Wildcard Matching
2035 Partition Array Into Two Arrays to Minimize Sum Difference

Post a Comment

0 Comments