DSA Series Day 22: Reorder List in Java, Python and Rust
Solve Reorder List in O(n) time and O(1) space by finding the middle, reversing and merging. Day 22 of the Tekraze DSA series in Java, Python and Rust.
Solve Reorder List in O(n) time and O(1) space by finding the middle, reversing and merging. Day 22 of the Tekraze DSA series in Java, Python and Rust.
Remove the nth node from the end of a linked list in one pass with two pointers and a dummy node. Day 21 of the Tekraze DSA series with tested Java, Python and Rust code.
Day 20 of the Tekraze DSA series. Detect a linked list cycle in O(n) time and O(1) space with slow and fast pointers, tested Java, Python and Rust code.
Day 19 of the Tekraze DSA series. Merge Two Sorted Lists in O(n + m) time with a dummy head, tested Java, Python and Rust code, tips and FAQs.
Day 18 of the Tekraze DSA series. Reverse a Linked List in one pass with O(1) extra space, tested Java, Python and Rust code, tips and FAQs.
Day 17 of the Tekraze DSA series. Implement Queue using Stacks with two stacks and amortized O(1) ops, tested Java, Python and Rust code, tips and FAQs.
Day 16 of the Tekraze DSA series. Solve Daily Temperatures with a monotonic stack in O(n), with tested Java, Python and Rust code, tips and FAQs.
Day 15 of the Tekraze DSA series. Evaluate Reverse Polish Notation with a stack in O(n), with tested Java, Python and Rust code, tips and FAQs.
Day 14 of the Tekraze DSA series. Design a Min Stack with O(1) push, pop, top and getMin, with tested Java, Python and Rust code, tips and FAQs.
Day 13 of the Tekraze DSA series. Solve Valid Parentheses with a stack in O(n) time, with tested Java, Python and Rust code, tips and FAQs.
Day 12 of the Tekraze DSA series. Solve Minimum Window Substring with a sliding window in O(m + n) time, with tested Java, Python and Rust code and FAQs.
Day 11 of the Tekraze DSA series. Solve Longest Repeating Character Replacement with a sliding window in O(n) time, with tested Java, Python and Rust code and FAQs.