Implement stack using array - GFG Implementing Dijkstra Algorithm - GFG Insertion Sort - GFG Job Sequencing Problem - GFG K largest elements - GFG K-th element of two sorted Arrays - GFG Koko Eating Bananas - GFG Kth largest element in BST - GFG Kth smallest element - GFG Largest Divisible...
GFG_reverse_a_string_using_stack.java GFG_reverse_first_k_elements_of_queue.java GFG_reverse_level_order_traversal.java GFG_right_view_of_binary_tree.java GFG_rod_cutting.java GFG_roman_number_to_integer.java GFG_rotate_array.java GFG_rotten_oranges.java GFG_row_with_max_1s.java GFG_segre...
Split Array Largest Sum.cpp 13_December_2022 Dec 13, 2022 Stack Permutations.cpp 07_September_2022 Sep 7, 2022 Stickler Thief.cpp 21_September_2023 Sep 21, 2023 Stock buy and sell II.cpp 05_July_2023 Jul 5, 2023 String Mirror.cpp 07-may-2023 May 7, 2023 String rp or pr.cpp 22_...
1441-build-an-array-with-stack-operations Time: 0 ms (100.00%), Space: 8 MB (91.97%) - LeetHub Nov 7, 2023 1456-maximum-number-of-vowels-in-a-substring-of-given-length Time: 20 ms (71.39%), Space: 10.1 MB (29.12%) - LeetHub May 5, 2023 ...
Stack 0402-remove-k-digits Greedy 0402-remove-k-digits 0409-longest-palindrome 0876-hand-of-straights 2572-append-characters-to-string-to-make-subsequence Monotonic Stack 0402-remove-k-digits Dynamic Programming 0124-binary-tree-maximum-path-sum Tree 0124-binary-tree-maximum-path-sum Depth-First Se...
2149-rearrange-array-elements-by-sign 2150-find-all-lonely-numbers-in-the-array 216-combination-sum-iii 22-generate-parentheses 225-implement-stack-using-queues 229-majority-element-ii 23-merge-k-sorted-lists 232-implement-queue-using-stacks 235-lowest-common-ancestor-of-a-binary-sear...
Stacks Create Implement Stack using Array.cpp Jul 4, 2024 Strings Update Reverse Words.cpp Jul 1, 2024 README.md Create README.md Jul 4, 2024 Repository files navigation README DSA solutions About Solutions and if you know the solution you can contribute too Resources Readme Activity ...
215-kth-largest-element-in-an-array Time: 83 ms (89.90%) | Memory: 47.3 MB (49.46%) - LeetSync Aug 15, 2023 225-implement-stack-using-queues Added README.md file for Implement Stack using Queues Aug 28, 2023 2254-check-if-every-row-and-column-contains-all-numbers ...
0215-kth-largest-element-in-an-array 0217-contains-duplicate 0219-contains-duplicate-ii 0222-count-complete-tree-nodes 0223-rectangle-area 0225-implement-stack-using-queues 0226-invert-binary-tree 0229-majority-element-ii 0230-kth-smallest-element-in-a-bst 0231-power-of-two 0232-...
importjava.util.Stack; publicclassQueueUsingTwoStacks { staticclassQueue { staticStack<Integer>s1=newStack<>(); staticStack<Integer>s2=newStack<>(); publicstaticbooleanisEmpty() { returns1.isEmpty(); } // add ==> O(n) publicstaticvoidadd(intdata) ...