上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 87 下一页
摘要: https://leetcode.com/problems/reverse-linked-list-ii/ Reverse a linked list from position m to n. Do it in one-pass. Note: 1 ≤ m ≤ n ≤ length of list. 阅读全文
posted @ 2019-02-20 21:10 丧心病狂工科女 阅读(118) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/reorder-list/ Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You may not modify th 阅读全文
posted @ 2019-02-20 15:32 丧心病狂工科女 阅读(100) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/k-diff-pairs-in-an-array/ Given an array of integers and an integer k, you need to find the number of unique k-diff pair 阅读全文
posted @ 2019-02-20 14:37 丧心病狂工科女 阅读(101) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/partition-list/ Given a linked list and a value x, partition it such that all nodes less than x come before nodes greate 阅读全文
posted @ 2019-02-20 14:02 丧心病狂工科女 阅读(91) 评论(0) 推荐(0) 编辑
摘要: https://vjudge.net/problem/HRBUST-1955 9 * 9 的 Sudoku 给每个格子标号 num 并且通过标号唯一确定格子的位置在 num / 9 行 num % 9 列 判断待定数字是不是在每行每列每宫中没有出现过 如果可以顺利搜索完所有格子 ans 标为 1 如 阅读全文
posted @ 2019-02-20 12:21 丧心病狂工科女 阅读(261) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/reverse-only-letters/ Given a string S, return the "reversed" string where all characters that are not a letter stay in 阅读全文
posted @ 2019-02-18 21:33 丧心病狂工科女 阅读(176) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/robot-return-to-origin/ There is a robot starting at position (0, 0), the origin, on a 2D plane. Given a sequence of its 阅读全文
posted @ 2019-02-17 17:08 丧心病狂工科女 阅读(206) 评论(0) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805342720868352/problems/994805359372255232 Given a tree, you are supposed to tell if it is a complete binary tree. 阅读全文
posted @ 2019-02-17 15:39 丧心病狂工科女 阅读(132) 评论(0) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805342720868352/problems/994805388447170560 A supply chain is a network of retailers(零售商), distributors(经销商), and su 阅读全文
posted @ 2019-02-17 14:46 丧心病狂工科女 阅读(364) 评论(0) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805342720868352/problems/994805355987451904 A Binary Search Tree (BST) is recursively defined as a binary tree which 阅读全文
posted @ 2019-02-17 14:28 丧心病狂工科女 阅读(276) 评论(0) 推荐(0) 编辑
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 87 下一页