Algorithms

391. Perfect Rectangle

Leetcode Link Problem Given an array rectangles where rectangles[i] = [x i , y i , a i , b i ] represents an axis aligned rectangle. The bottom left point of the rectangle is (x i , y i ) and the top right point of it…

355. Design Twitter

Leetcode Link Problem Design a simplified version of Twitter where users can post tweets, follow/unfollow another user, and is able to see the 10 most recent tweets in the user's news feed. Implement the Twitter class:…