NOTE


  • 首页

  • 分类

  • 关于

  • 归档

  • 标签

Single Number

发表于 2016-08-16   |   分类于 LeetCode , Array , Bit Manipulation

Given an array of integers, every element appears twice except for one. Find that single one.

阅读全文 »

Symmetric Tree

发表于 2016-08-15   |   分类于 LeetCode , Tree

Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).

阅读全文 »

Path Sum

发表于 2016-08-14   |   分类于 LeetCode , Tree

Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.

阅读全文 »

Sort Colors

发表于 2016-08-14   |   分类于 LeetCode , Array

Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue.

Here, we will use the integers 0, 1, and 2 to represent the color red, white, and blue respectively.

阅读全文 »

Populating Next Right Pointers in Each Node II

发表于 2016-08-13   |   分类于 LeetCode , Tree

Populate each next pointer to point to its next right node. If there is no next right node, the next pointer should be set to NULL.Initially, all next pointers are set to NULL.

阅读全文 »
1…8910…13
denglyan

denglyan

めざせポケモンマスター

63 日志
31 分类
26 标签
© 2016 - 2018 denglyan
由 Hexo 强力驱动
主题 - NexT.Mist