347. Top K Frequent Elements

Problem description:

Given a non-empty array of integers, return the k most frequent elements.

Readmore

49. Group Anagrams

Problem description:

Given an array of strings, group anagrams together.

Readmore

138. Copy List with Random Pointer

Problem description:

A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.
Return a deep copy of the list.

Readmore

535. Encode and Decode TinyURL

Problem description:

TinyURL is a URL shortening service where you enter a URL such as https://leetcode.com/problems/design-tinyurl and it returns a short URL such as http://tinyurl.com/4e9iAk.

Readmore

340. Longest Substring with At Most K Distinct Characters

Problem description:

Given a string, find the length of the longest substring T that contains at most k distinct characters.

Readmore

159. Longest Substring with At Most Two Distinct Characters

Problem description:

Given a string s , find the length of the longest substring t that contains at most 2 distinct characters.

Readmore

3. Longest Substring Without Repeating Characters

Problem description:

Given a string, find the length of the longest substring without repeating characters.

Readmore

55. Jump Game

Problem description:

/*
Given an array of non-negative integers, you are initially positioned at the first index of the array.

Readmore

18. 4Sum

Problem description:

Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of target.

Readmore

162. Find Peak Element

Problem description:

A peak element is an element that is greater than its neighbors.

Readmore