leetcode-liwang:leetcode学习笔记

时间:2021-04-19 21:39:28
【文件属性】:
文件名称:leetcode-liwang:leetcode学习笔记
文件大小:6KB
文件格式:ZIP
更新时间:2021-04-19 21:39:28
leedcode-liwang Study note for leetcode. Easy 001 Two Sum Using hash map. 020 Valid Parentheses Using stack can achieve O(n) space and O(n) time. Using Regular match, the complexity depends on the regular algorithm. 021 Merge Two Sorted Lists Traverse the linked list. O(m+n) time, O(m+n) sapce. *0026 Remove Duplicates from Sorted Array 使用双指针,一个快指针,一个慢指针。开始时,两个指针都指向首元素。当两指针元素值相同时,快指针+1;当两指针元素不同时,慢
【文件预览】:
leetcode-liwang-main
----LICENSE(11KB)
----README.md(2KB)

网友评论