400LeetCode
leiwangzhongde
这个作者很懒,什么都没留下…
展开
-
3rd__80. Remove Duplicates from Sorted Array II__【400_LeetCode之路】
/// Source : https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/description/ /// Author : liuyubobobo /// Time : 2016-12-26 #include <iostream> #include <vector> #i...原创 2019-03-29 18:00:23 · 87 阅读 · 0 评论 -
4th__277. Find the Celebrity__【400_LeetCode之路】
方法一:双层循环;否命题判定candidate[i] 相反命题判定candidate[j] #include <iostream> #include <vector> #include <algorithm> using namespace std; //You are given a helper function bool knows(a, b) ...原创 2019-03-29 18:02:56 · 151 阅读 · 0 评论 -
5th__189. Rotate Array__【400_LeetCode之路】
解法一: /// Source : https://leetcode.com/problems/rotate-array/description/ /// Author : liuyubobobo /// Time : 2018-08-10 #include <iostream> #include <vector> #include <queue> ...原创 2019-03-30 15:55:42 · 118 阅读 · 0 评论 -
1st__27. Remove Element__【400_LeetCode之路】
从https://cspiration.com/leetcodeClassification上的清单开始 第一种方法: /// Source : https://leetcode.com/problems/remove-element/ /// Author : liuyubobobo /// Time : 2016-12-05 #include <iostream> ...原创 2019-03-29 12:36:06 · 163 阅读 · 0 评论 -
2nd__26. Remove Duplicates from Sorted Array__【400_LeetCode之路】
class Solution { public: int removeDuplicates(vector<int>& nums) { if (nums.size() == 0) return 0; int res = 1; int index = nextDifferentCharacterIndex(nums, 1); int i = 1;...原创 2019-03-29 12:42:38 · 88 阅读 · 0 评论 -
java - eclipse 调试快捷键及技巧
java - eclipse 调试快捷键及技巧 参考如下: https://jingyan.baidu.com/article/647f0115d666b27f2148a8b1.html转载 2019-08-05 16:31:14 · 310 阅读 · 0 评论