#dsaUnmoderated tag#dsaHottekraze in # dsa • 20 hr. ago • 2 min readDSA Series Day 18: Reverse Linked List in Java, Python and RustHi everyone, I hope you all are doing good. Day 18 of my DSA series is Reverse Linked List. We closed the stacks and queues chapter with Day 17, and now we move into linked lists. The problem You get the head of a singly linked list and return it flipped, so the last node becomes the new head. On LeetCode this is problem 206. Quick…tekraze in # dsa • 3 days ago • 2 min readDSA Series Day 17: Implement Queue using Stacks in Java, Python and RustHi everyone, I hope you all are doing good. Day 17 of my DSA series is Implement Queue using Stacks. Yesterday we wrapped up stacks with Daily Temperatures, and today we move into queues using only stack operations. The problem You build a class MyQueue that behaves like a normal FIFO queue with push, pop, peek and empty, but you may only…tekraze in # dsa • 4 days ago • 2 min readDSA Series Day 16: Daily Temperatures in Java, Python and RustHi everyone, I hope you all are doing good. Day 16 of my DSA series is Daily Temperatures. Yesterday we evaluated postfix expressions, and today we wrap up the stacks chapter with a classic next greater element problem. The problem You get daily temperatures and must return how many days you wait after each day for a strictly warmer…tekraze in # dsa • 5 days ago • 2 min readDSA Series Day 15: Evaluate Reverse Polish Notation in Java, Python and RustHi everyone, I hope you all are doing good. Day 15 of my DSA series is Evaluate Reverse Polish Notation. Yesterday we built a min stack, and today we stay with stacks to evaluate postfix expressions. The problem You get a valid array of tokens, integers and the four operators +, -, * and /, in Reverse Polish Notation, and you return the…tekraze in # dsa • 6 days ago • 2 min readDSA Series Day 14: Min Stack in Java, Python and RustHi everyone, I hope you all are doing good. Day 14 of my DSA series is Min Stack. Yesterday we matched brackets with a stack, and today we build our own stack that can also give its smallest value instantly. The problem Design a stack with push, pop, top and getMin, where every operation runs in O(1) time. It is LeetCode problem 155. Quick…tekraze in # dsa • 7 days ago • 2 min readDSA Series Day 13: Valid Parentheses in Java, Python and RustHi everyone, I hope you all are doing good. Day 13 of my DSA series is Valid Parentheses. We are done with sliding windows, and this is our first step into stacks. The problem You get a string made only of ( ) [ ] { }. Return true if every opening bracket is closed by the same type, in the correct order, and every closer has a matching…