NOTE


  • 首页

  • 分类

  • 关于

  • 归档

  • 标签

归并排序

发表于 2016-08-09   |   分类于 Study Notes , Sort , Merge Sort

Conceptually, a merge sort works as follows: - - - wikipedia

  1. Divide the unsorted list into n sublists, each containing 1 element (a list of 1 element is considered sorted).
  2. Repeatedly merge sublists to produce new sorted sublists until there is only 1 sublist remaining. This will be the sorted list.
阅读全文 »

Merge Sorted Array

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

Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.

阅读全文 »

Unique Binary Search Trees

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

Given n, how many structurally unique BST’s (binary search trees) that store values 1…n?

阅读全文 »

Balanced Binary Tree

发表于 2016-08-08   |   分类于 LeetCode , Tree , Depth-first Search

Given a binary tree, determine if it is height-balanced.

For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of every node never differ by more than 1.

阅读全文 »

Binary Tree Inorder Traversal

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

Given a binary tree, return the inorder traversal of its nodes’ values.

阅读全文 »
1…10111213
denglyan

denglyan

めざせポケモンマスター

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