摘要:
https://leetcode.com/problems/intersection-of-two-linked-lists/description/ Write a program to find the node at which the intersection of two singly l 阅读全文
摘要:
Given a node from a cyclic linked list which has been sorted, write a function to insert a value into the list such that it remains a cyclic sorted list. The given node can be any single node in the l... 阅读全文
摘要:
https://leetcode.com/problems/search-for-a-range/description/ Given an array of integers sorted in ascending order, find the starting and ending posit 阅读全文
摘要:
这是 Implement Deque Using Two Stacks 的升华版本, 存一半有效的把时间复杂度最坏情况降低到O(N/2) 这里最好,最坏的情况正好和 Implement Deque Using Two Stacks 相反。 最好的情况: 雨露均沾 最坏的情况:专宠一人 阅读全文