750. Number Of Corner Rectangles

Problem description:

Given a grid where each entry is only 0 or 1, find the number of corner rectangles.

Readmore

497. Random Point in Non-overlapping Rectangles

Problem description:

Given a list of non-overlapping axis-aligned rectangles rects, write a function pick which randomly and uniformily picks an integer point in the space covered by the rectangles.

Readmore

939. Minimum Area Rectangle

Problem description:

Given a set of points in the xy-plane, determine the minimum area of a rectangle formed from these points, with sides parallel to the x and y axes.

Readmore

833. Find And Replace in String

Problem description:

To some string S, we will perform some replacement operations that replace groups of letters with new ones (not necessarily the same size).

Readmore

853. Car Fleet

Problem description:

N cars are going to the same destination along a one lane road. The destination is target miles away.

Readmore

855. Exam Room

Problem description:

In an exam room, there are N seats in a single row, numbered 0, 1, 2, …, N-1.

Readmore

890. Find and Replace Pattern

Problem description:

You have a list of words and a pattern, and you want to know which words in words matches the pattern.

Readmore

489. Robot Room Cleaner

Problem description:

Given a robot cleaner in a room modeled as a grid.

Readmore

design Elevator

Design interview questions can be pretty vague and answers often depends on interviewers requirement.

But there are some generic steps that you can follow:

Readmore

239. Sliding Window Maximum

Problem description:

Given an array nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see the k numbers in the window. Each time the sliding window moves right by one position. Return the max sliding window.

Readmore