GFG_queue_using_two_stacks.java GFG_quick_sort_on_linked_list.java GFG_rat_in_a_maze_problem_I.java GFG_reach_a_given_score.java GFG_remove_duplicate_element_from_sorted_linked _list.java GFG_remove_duplicates_from_an_unsorted_linked_list.java GFG_remove_loop_in_linked_list.java GFG_reve...
0231-power-of-two Time: 0 ms (100.00%), Space: 7.2 MB (39.77%) - LeetHub Feb 19, 2024 0232-implement-queue-using-stacks Time: 3 ms (38.43%), Space: 7.3 MB (9.55%) - LeetHub Sep 14, 2023 0234-palindrome-linked-list Time: 188 ms (26.09%), Space: 130.8 MB (18.21%) - Leet...
publicclassQueueUsingTwoStacks { staticclassQueue { staticStack<Integer>s1=newStack<>(); staticStack<Integer>s2=newStack<>(); publicstaticbooleanisEmpty() { returns1.isEmpty(); } // add ==> O(n) publicstaticvoidadd(intdata) {
232-implement-queue-using-stacks 235-lowest-common-ancestor-of-a-binary-search-tree 238-product-of-array-except-self 24-swap-nodes-in-pairs 242-valid-anagram 258-add-digits 26-remove-duplicates-from-sorted-array 268-missing-number 2732-counter 2747-apply-transform-over-each-element...
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-implement-queue-using-stacks 0234-palindrome-linked-list 0237-delete-node-in-a-linked-list 0238-product-of-array-except-self 0239-sliding-wi...
Queue Sum_of_Min_Max_in_Window.cpp file added Jun 27, 2022 Recursion Recursion Print Increasing SubSequence files added Jan 20, 2023 Segment Trees Bit Manipulation Mar 22, 2023 Sparse Matrix Sudoku_Solver.cpp file added Nov 23, 2022
DSA-Cpp Contributors are invited to improve the content, add new problems to it. Arrays Array Character Arrays Sorting Array Algorithm Circular Max Sum Subarray First Repeating Element Matrix Transpose Maximum Subarray Sum Backtracking Binary Search ...
GFG_queue_using_two_stacks.java GFG_quick_sort_on_linked_list.java GFG_rat_in_a_maze_problem_I.java GFG_reach_a_given_score.java GFG_remove_duplicate_element_from_sorted_linked _list.java GFG_remove_duplicates_from_an_unsorted_linked_list.java GFG_remove_loop_in_linked_list.java GFG_reve...
GFG_queue_using_two_stacks.java GFG_quick_sort_on_linked_list.java GFG_rat_in_a_maze_problem_I.java GFG_reach_a_given_score.java GFG_remove_duplicate_element_from_sorted_linked _list.java GFG_remove_duplicates_from_an_unsorted_linked_list.java GFG_remove_loop_in_linked_list.java GFG_reve...
Queue Sum_of_Min_Max_in_Window.cpp file added Jun 27, 2022 Recursion Recursion Print Increasing SubSequence files added Jan 20, 2023 Segment Trees Bit Manipulation Mar 22, 2023 Sparse Matrix Sudoku_Solver.cpp file added Nov 23, 2022 Stacks Infix_to_Prefix.cpp file added Jun 20, 2022 String...