1721-swapping-nodes-in-a-linked-list Time: 2 ms (59.92%), Space: 58.1 MB (78.44%) - LeetHub Jun 30, 2024 1791-find-center-of-star-graph Time: 28 ms (14.34%), Space: 74.6 MB (20.99%) - LeetHub Jun 28, 2024 1863-sum-of-all-subset-xor-totals Attach NOTES - LeetHub May 21...
}// } Driver Code Ends /* node for linked list:struct Node { int data; struct Node* next; Node(int x) { data = x; next = NULL; } };*/class Solution { public: Node* reverse(Node* head){ Node* prev=NULL; Node* current=head; ...
0876-middle-of-the-linked-list 0877-shortest-path-visiting-all-nodes 0916-decoded-string-at-index 0932-monotonic-array 0941-sort-array-by-parity 0973-k-closest-points-to-origin 0976-largest-perimeter-triangle 0997-find-the-town-judge 1-two-sum 100-same-tree 102-binary-tree-level-order-travers...
Added README.md file for Linked List Cycle Sep 4, 2023 152-maximum-product-subarray Time: 4 ms (86.97%) | Memory: 13.8 MB (60.46%) - LeetSync Jul 27, 2023 1613-find-critical-and-pseudo-critical-edges-in-minimum-spanning-tree
Check if Linked List is Palindrome - GFG Added solution - LeetHub Jun 9, 2022 Container With Most Water - GFG Added solution - LeetHub Dec 28, 2022 Count Occurences of Anagrams - GFG Added solution - LeetHub May 15, 2022 Count pairs with given sum - GFG Added solution - LeetHub Oct...
Linked List Create Count LL nodes.cpp Jul 1, 2024 Maths Create Multiplication_under_modulo.cpp Jul 1, 2024 Recursion Create print 1 to N .cpp Jul 1, 2024 Stacks Create Implement Stack using Array.cpp Jul 4, 2024 Strings Update Reverse Words.cpp Jul 1, 2024 ...
Building Ultimate Data Structure and Algorithms in C++ Solution Repository. Solution to various DSA problems including problem from Leetcode, Codechef, GFG, Coding Ninjas. - Kanav-Arora/DSA-Guide
0237-delete-node-in-a-linked-list 0238-product-of-array-except-self 0239-sliding-window-maximum 0240-search-a-2d-matrix-ii 0242-valid-anagram 0258-add-digits 0260-single-number-iii 0263-ugly-number 0264-ugly-number-ii 0268-missing-number 0274-h-index 0275-h-index-ii 0278...
Check if Linked List is Palindrome.java Check if a given graph is tree or not.java Check if a string is repetition of its substring of k-length.java Check if all leaves are at same level.java Check if array is sorted.java ...
0141-linked-list-cycle 0168-excel-sheet-column-title 0179-largest-number 0188-best-time-to-buy-and-sell-stock-iv 0191-number-of-1-bits 0202-happy-number 0207-course-schedule 0212-word-search-ii 0215-kth-largest-element-in-an-array 0230-kth-smallest-element-in-a-bst 0241-different-ways-to...