摘要:
https://leetcode.com/problems/ransom-note/ Given an arbitrary ransom note string and another string containing letters from all the magazines, write a 阅读全文
posted @ 2019-02-20 21:20
_Zlrrr
阅读(142)
评论(0)
推荐(0)
摘要:
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
_Zlrrr
阅读(121)
评论(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
_Zlrrr
阅读(102)
评论(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
_Zlrrr
阅读(104)
评论(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
_Zlrrr
阅读(93)
评论(0)
推荐(0)
摘要:
https://vjudge.net/problem/HRBUST-1955 9 * 9 的 Sudoku 给每个格子标号 num 并且通过标号唯一确定格子的位置在 num / 9 行 num % 9 列 判断待定数字是不是在每行每列每宫中没有出现过 如果可以顺利搜索完所有格子 ans 标为 1 如 阅读全文
posted @ 2019-02-20 12:21
_Zlrrr
阅读(268)
评论(0)
推荐(0)

浙公网安备 33010602011771号