2016年6月17日

334. Increasing Triplet Subsequence

摘要: //贪心class Solution {public: bool increasingTriplet(vector& nums) { int length=nums.size(); if(length==0){ return 0; } int ... 阅读全文

posted @ 2016-06-17 21:17 胖胖的乓乓 阅读(123) 评论(0) 推荐(0) 编辑

300 Longest Increasing Subsequence

摘要: class Solution {public: int lengthOfLIS(vector& nums) { int length=nums.size(); if(length==0){ return 0; } int cont=0; int ... 阅读全文

posted @ 2016-06-17 21:13 胖胖的乓乓 阅读(101) 评论(0) 推荐(0) 编辑

导航