DSA Series Day 27: Search in Rotated Sorted Array in Java, Python and Rust
Search in Rotated Sorted Array with binary search, plain intuition, brute force vs optimal and tested Java, Python and Rust code. Tekraze DSA Day 27.
Search in Rotated Sorted Array with binary search, plain intuition, brute force vs optimal and tested Java, Python and Rust code. Tekraze DSA Day 27.
A simple guide to trees and graphs for the Tekraze DSA series. Learn the parts of a tree, how to spot and solve tree problems, how graphs differ, and real use cases, with Java, Python and Rust examples.
Find Minimum in Rotated Sorted Array with binary search, plain intuition, brute force vs optimal and tested Java, Python and Rust code. Tekraze DSA Day 26.
A simple guide to recursion for the Tekraze DSA series. Learn the base case, the fact(4) call stack, 3 tricks, and Java, Python and Rust examples, plus recursion vs iteration and Big O.
Learn Koko Eating Bananas with binary search on the answer, clear intuition, brute force vs optimal and tested Java, Python and Rust code. Day 25 of the Tekraze DSA series.
Learn Search a 2D Matrix in O(log(m*n)) time with clear intuition, brute force vs optimal and tested Java, Python and Rust code. Day 24 of the Tekraze DSA series.
Learn Binary Search in O(log n) time with clear intuition, brute force vs optimal and tested Java, Python and Rust code. Day 23 of the Tekraze DSA series.
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.