Design a data structure that supports all following ope […]
LeetCode中出现了多个对数据求和的题目,包括Two Sum,Two Sum II, 3Sum,4Sum, […]
Given a column title as appear in an Excel sheet, retur […]
Implement a basic calculator to evaluate a simple expre […]
Evaluate the value of an arithmetic expression in […]
Given a non-empty array of integers, return the k& […]
Given a n x n matrix where each of […]
1.描述 priority_queue是优先队列,相对于普通的队列来说,它可以定义数据的优先级,在队列里面元素 […]
Median is the middle value in an ordered integer list. […]
Find the kth largest element in an unsorted array. […]
Design a stack that supports push, pop, top, and retrie […]
Given a singly linked list, group all odd nodes togethe […]
Given a singly linked list, determine if it is a palind […]
Reverse a singly linked list. Example: Input: 1->2-& […]
Sort a linked list in O(n log n) time us […]