Intern 2023

Leetcode

1361. Validate Binary Tree Nodes

Question

Solution

342. Power of Four

Question

Solution

  • quotient
  • remainder

501. Find Mode in Binary Search Tree

Question

Solution

  • BST (Binary Search Tree) in-order travesal can get the sorted list.
  • Morris Traversal

1845. Seat Reservation Manager

Question

Solution

  • Min-heap/Max-heap
  • Python has the heapq for building Min-heap

Bit Manipulation

Bit Manipulation

Search

    Table of Contents