Longest Valid Parentheses
A stack-based Rust walkthrough for LeetCode's Longest Valid Parentheses problem.
Writing collection
Coding-challenge walkthroughs in Rust and JavaScript, written while practicing data structures, recursion, stacks, and two-pointer techniques.
The collection
A stack-based Rust walkthrough for LeetCode's Longest Valid Parentheses problem.
A recursive JavaScript solution for finding the lowest common ancestor of two nodes in a binary tree.
A Rust two-pointer solution for finding the three-number sum closest to a target.
A Rust walkthrough of the sorted two-pointer solution for finding unique triplets that sum to zero.
A recursive Rust solution for swapping adjacent nodes in a singly linked list without changing their values.