摘要:
分析 难度 易 来源 https://leetcode.com/problems/excel-sheet-column-title/ 十进制转26进制 注意,z表示26,而非0 题目 Given a positive integer, return its corresponding column 阅读全文
摘要:
分析 难度 易 来源 https://leetcode.com/problems/excel-sheet-column-title/ 十进制转26进制 注意,z表示26,而非0 题目 Given a positive integer, return its corresponding column 阅读全文
摘要:
分析 难度 易 来源 https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/ 题目 Given an array of integers that is already sorted in ascending order, fi 阅读全文
摘要:
分析 难度 易 来源 https://leetcode.com/problems/intersection-of-two-linked-lists/ 把第一个链表的结尾指向第二个链表的开头。 如果两个链表有交集,则新的链表有环 环的开始处即两个链表交集的起始节点 题目 Write a program 阅读全文
摘要:
分析 难度 易 来源 https://leetcode.com/problems/min-stack/ 题目 Design a stack that supports push, pop, top, and retrieving the minimum element in constant tim 阅读全文
摘要:
分析 难度 中 来源 https://leetcode.com/problems/find-the-duplicate-number/ 题目 Given an array nums containing n + 1 integers where each integer is between 1 a 阅读全文
摘要:
分析 难度 中 来源 https://leetcode.com/problems/linked-list-cycle-ii 环之前节点数 a;从环起始节点到快慢指针相遇位置,节点数 b 快慢指针fast slow相遇,慢指针走过 a+b,快指针走过2*(a+b) 快慢指针相遇时,创建第二个慢指针 s 阅读全文
摘要:
分析 难度 易 来源 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 wit 阅读全文
摘要:
分析 参考https://cloud.tencent.com/developer/article/1131945 我们想要达到的效果其实是—— a b 初始状态 : 0 0 第一次碰见某个数x: 0 x(把x记录在b中) 第二次碰见某个数x: x 0(把x记录在a中) 第三次碰见某个数x: 0 0( 阅读全文
摘要:
分析 难度 易 来源 https://leetcode.com/problems/single-number 题目 Given a non-empty array of integers, every element appears twice except for one. Find that s 阅读全文
摘要:
分析 难度 易 来源 https://leetcode.com/problems/valid-palindrome/ 题目 Given a string, determine if it is a palindrome, considering only alphanumeric character 阅读全文
|