题目 Implement an iterator over a binary search tree (BST). Your iterator will be initial...

IP属地:佛罗里达州
题目 Implement an iterator over a binary search tree (BST). Your iterator will be initial...
题目 Given an integer n, return the number of trailing zeroes in n!. Note: Your solution ...
题目 Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…...
题目 Sort a linked list in O(n log n) time using constant space complexity. 思路 用归并排序 归并排序...
题目 Sort a linked list using insertion sort. 思路 这道题花费了最多的时间。 复习了array的插入排序,用两个循环实现,每次循环到...
题目 Design a stack that supports push, pop, top, and retrieving the minimum element in c...
题目: There are N students in a class. Some of them are friends, while some are not. Thei...
题目 Given a non-empty string s and a dictionary wordDict containing a list of non-empty ...
题目: A linked list is given such that each node contains an additional random pointer wh...