- Containers
- Algorithm
- Iterators
Containers
1.Sequential
- vectors
- stack
- queue
- pair(it is not a conatiner)
- Ordered
- Maps
- Multimap
- Set
- Multiset
- Unordered
- unordered_map
- unordred_set
Algorithm
- sort(comparator)
- max_element
- min_element
- reverse
- count
- find
- accumulate
- upper_bound
- lower_bound
- next_permutations
- pre_permutations
Iterators
-
begin() :- This function is used to return the beginning position of the container.
-
end() :- This function is used to return the after end position of the container.
-
vector::iterator itr
Top 50 array questions for interview
** Array questions on Leetcode
1.Easy
Remove Duplicate from sorted Array
Best Time to Buy and Sell Stock
- Sliding Window Algorithm 1.Easy
1876. Substrings of Size Three with Distinct Characters
643. Maximum Average Subarray I
- Two Pointers
1.Easy
167. Two Sum II - Input Array Is Sorted
2.Medium
- Kadane's Algorithms
Linked List
Add two numbers represented by linked lists
Intersection Point in Y Shapped Linked Lists
Must Do Coding Questions of Linkedlist
1.DAY1
1710. Maximum Units on a Truck
- DAY2
380. Insert Delete GetRandom O(1)
1047. Remove All Adjacent Duplicates In String
232. Implement Queue using Stacks
1700. Number of Students Unable to Eat Lunch
1249. Minimum Remove to Make Valid Parentheses
1209. Remove All Adjacent Duplicates in String II
921. Minimum Add to Make Parentheses Valid
84. Largest Rectangle in Histogram
2073. Time Needed to Buy Tickets
232. Implement Queue using Stacks
387. First Unique Character in a String
862. Shortest Subarray with Sum at Least K
225. Implement Stack using Queues
1823. Find the Winner of the Circular Game
1352. Product of the Last K Numbers
349. Intersection of Two Arrays
1539. Kth Missing Positive Number
33. Search in Rotated Sorted Array
981. Time Based Key-Value Store
540. Single Element in a Sorted Array
718. Maximum Length of Repeated Subarray
1004. Max Consecutive Ones III
1235. Maximum Profit in Job Scheduling
862. Shortest Subarray with Sum at Least K
1044. Longest Duplicate Substring
1235. Maximum Profit in Job Scheduling
973. K Closest Points to Origin
215. Kth Largest Element in an Array
295. Find Median from Data Stream
937. Reorder Data in Log Files
145. Binary Tree Postorder Traversal
144. Binary Tree Preorder Traversal
94. Binary Tree Inorder Traversal
104. Maximum Depth of Binary Tree
236. Lowest Common Ancestor of a Binary Tree
124. Binary Tree Maximum Path Sum
199. Binary Tree Right Side View
863. All Nodes Distance K in Binary Tree
103. Binary Tree Zigzag Level Order Traversal
173. Binary Search Tree Iterator
96. Unique Binary Search Trees