309. Best Time to Buy and Sell Stock with Cooldown

Problem description:

Say you have an array for which the ith element is the price of a given stock on day i.

Readmore

121. Best Time to Buy and Sell Stock

Problem description:

Say you have an array for which the ith element is the price of a given stock on day i.

Readmore

67. Add Binary

Problem description:

Given two binary strings, return their sum (also a binary string).

Readmore

283. Move Zeroes

Problem description:

Given an array nums, write a function to move all 0’s to the end of it while maintaining the relative order of the non-zero elements.

Readmore

29. Divide Two Integers

Problem description:

Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator.

Readmore

621. Task Scheduler

Problem description:

Given a char array representing tasks CPU need to do. It contains capital letters A to Z where different letters represent different tasks.Tasks could be done without original order. Each task could be done in one interval. For each interval, CPU could finish one task or just be idle.

Readmore

253. Meeting Rooms II

Problem description:

Given an array of meeting time intervals consisting of start and end times [[s1,e1],[s2,e2],…] (si < ei), find the minimum number of conference rooms required.

Readmore

91. Decode Ways

Problem description:

A message containing letters from A-Z is being encoded to numbers using the following mapping:

1
2
3
4
'A' -> 1
'B' -> 2
...
'Z' -> 26

Readmore

65. Valid Number

Problem description:

Validate if a given string is numeric.

Readmore

10. Regular Expression Matching

Problem description:

Given an input string (s) and a pattern (p), implement regular expression matching with support for ‘.’ and ‘*’.

Readmore