上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 87 下一页
摘要: https://leetcode.com/problems/minimum-size-subarray-sum/ Given an array of n positive integers and a positive integer s, find the minimal length of a  阅读全文
posted @ 2018-11-30 18:08 丧心病狂工科女 阅读(119) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/isomorphic-strings/ Given two strings s and t, determine if they are isomorphic. Two strings are isomorphic if the chara 阅读全文
posted @ 2018-11-30 15:32 丧心病狂工科女 阅读(131) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/bitwise-and-of-numbers-range/ Given a range [m, n] where 0 <= m <= n <= 2147483647, return the bitwise AND of all number 阅读全文
posted @ 2018-11-30 15:15 丧心病狂工科女 阅读(101) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/implement-stack-using-queues/ Implement the following operations of a stack using queues. push(x) -- Push element x onto 阅读全文
posted @ 2018-11-30 14:55 丧心病狂工科女 阅读(129) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/implement-queue-using-stacks/ Implement the following operations of a queue using stacks. push(x) -- Push element x to t 阅读全文
posted @ 2018-11-30 14:25 丧心病狂工科女 阅读(95) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/contains-duplicate-ii/ Given an array of integers and an integer k, find out whether there are two distinct indices i an 阅读全文
posted @ 2018-11-30 14:07 丧心病狂工科女 阅读(110) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/remove-linked-list-elements/ Remove all elements from a linked list of integers that have value val. Example: 递归代码: /** 阅读全文
posted @ 2018-11-30 11:27 丧心病狂工科女 阅读(114) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/linked-list-cycle/ Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extr 阅读全文
posted @ 2018-11-30 10:20 丧心病狂工科女 阅读(102) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/longest-consecutive-sequence/ Given an unsorted array of integers, find the length of the longest consecutive elements s 阅读全文
posted @ 2018-11-29 22:16 丧心病狂工科女 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 1.冒泡排序 这个写法是先把小的数字排出来然后再排出来大的数字 代码: #include <bits/stdc++.h> using namespace std; const int maxn = 1e5 + 10; int n; int num[maxn]; void BubbleSort(int 阅读全文
posted @ 2018-11-29 20:00 丧心病狂工科女 阅读(228) 评论(0) 推荐(0) 编辑
上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 87 下一页