shuaijiang's blog
  • 首页
  • 归档
  • 分类
  • 标签
  • 关于

LeetCode Merge Two Sorted Lists

DescriptionMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. The original problem is here. The original code
6月 25 2015
#leetcode

LeetCode Valid Parentheses

DescriptionGiven a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[‘ and ‘]’, determine if the input string is valid. The brackets must close in the correct order, “()” and “()[]{}” are al
6月 24 2015
#leetcode

LeetCode Container With Most Water

DescriptionGiven an array of integers, every element appears three times except for one. Find that single one. Note:Your algorithm should have a linear runtime complexity. Could you implement it witho
6月 24 2015
#leetcode

LeetCode Single Number2

DescriptionGiven an array of integers, every element appears three times except for one. Find that single one. Note:Your algorithm should have a linear runtime complexity. Could you implement it witho
6月 24 2015
#leetcode

LeetCode Single Number

DescriptionGiven an array of integers, every element appears twice except for one. Find that single one. Note:Your algorithm should have a linear runtime complexity. Could you implement it without usi
6月 24 2015
#leetcode

LeetCode Min Stack

DescriptionDesign a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) – Push element x onto stack. pop() – Removes the element on top of the stack. top(
6月 24 2015
#leetcode

LeetCode Reverse Linked List

DescriptionReverse a singly linked list. The original problem is here. The original code is here.
6月 23 2015
#leetcode

LeetCode Intersection of Two Linked Lists

DescriptionThe original problem is here. The original code is here.
6月 22 2015
#leetcode

LeetCode Invert Binary Tree

Descriptionnvert a binary tree. 4 / 2 7 / \ / 1 3 6 9to 4 / 7 2 / \ / 9 6 3 1 The original problem is here. The original code is here.
6月 22 2015
#leetcode

LeetCode Symmetric Tree

DescriptionGiven a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree is symmetric: 1 / 2 2 / \ / 3 4 4 3But the follow
6月 22 2015
#leetcode
1…1920212223…26

搜索

Hexo Fluid
总访问量 次 总访客数 人
京ICP证123456号 | police-icon 京公网安备12345678号