Showing 2 questions
Determine if a binary tree is height-balanced. A height-balanced tree is defined as one where the difference in height between the left and right subtrees of every node is no more than 1.
#1. Balanced Binary Tree
Design a data structure that acts as a Least Recently Used (LRU) cache. Implement methods to get and put key-value pairs, evicting the least recently used entry when the cache is full.
#2. LRU Cache
Page 1 of 1 · 2 total