- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 [LeetCode]C语言-Edit Distance-程序优化之路
Given two words word1 and word2, find the minimum number of operations required to convert word1 to word2.You have the following 3 operations permitted on a word:Insert a character Delete a chara...
2018-08-17 17:11:06 341
原创 [LeetCode]C语言-Longest Valid Parentheses-程序优化之路
Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.Example 1:Input: "(()"Output: 2Explanation: The longest valid pare...
2018-07-03 22:01:33 225
原创 [LeetCode]C语言-Next Permutation-程序优化之路
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possible, it must rearrange it as the lowest possible ord...
2018-05-30 18:00:20 301
原创 [LeetCode]C语言-Merge k Sorted Lists-程序优化之路
这道题要求将k个已排序的链表合并,刚开始看到这个题,首先想到是它上一个题将两个有序链表合并(主要通过一个while循环判断两个链表元素值中哪个大,然后就链接那个链表元素),我接着想直接定义一个链表让它与每一个链表通过调用函数合并,最后就能得到结果。224msstruct ListNode* mergeTwoLists(struct ListNode* l1, struct ListNode* l2...
2018-05-19 20:39:34 529
端口扫描器
2018-01-03
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人