NOTE


  • 首页

  • 分类

  • 关于

  • 归档

  • 标签

Jump Game II

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

Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Your goal is to reach the last index in the minimum number of jumps.

阅读全文 »

Jump Game

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

Given an array of non-negative integers, you are initially positioned at the first index of the array.
Each element in the array represents your maximum jump length at that position.
Determine if you are able to reach the last index.

阅读全文 »

Sunday algorithm ( Fast String Searching )

发表于 2016-09-08   |   分类于 Study Notes , String , String Searching

字符串搜索算法,也称字符串匹配算法,目的是在主串中查找模式串。Sunday 算法的核心思想是:在匹配过程中,当两者不匹配时,尽可能多的跳过字符(以模式串末尾的下一位为匹配点),以进行下一步匹配

阅读全文 »

Longest Common Prefix

发表于 2016-08-31   |   分类于 LeetCode , String

Write a function to find the longest common prefix string amongst an array of strings.

阅读全文 »

Binary Tree Level Order Traversal II

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

Given a binary tree, return the bottom-up level order traversal of its nodes’ values. (ie, from left to right, level by level from leaf to root).

阅读全文 »
1…678…13
denglyan

denglyan

めざせポケモンマスター

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