04 2017 档案
摘要:原题链接在这里:https://leetcode.com/problems/decode-string/#/description 题目: Given an encoded string, return it's decoded string. The encoding rule is: k[enc
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/battleships-in-a-board/ 题目: Given an 2D board, count how many battleships are in it. The battleships are represe
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/find-leaves-of-binary-tree/#/description 题目: Given a binary tree, collect a tree's nodes as if you were doing th
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/valid-word-abbreviation/ 题目: Given a non-empty string s and an abbreviation abbr, return whether the string matc
阅读全文
摘要:原题链接在这里: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
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/minimum-absolute-difference-in-bst/ 题目: Given a binary search tree with non-negative values, find the minimum ab
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/third-maximum-number/ 题目: Given a non-empty array of integers, return the third maximum number in this array. If
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/heaters/#/description 题目: Winter is coming! Your first job during the contest is to design a standard heater wit
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/perfect-number/#/description 题目: We define the Perfect Number is a positive integer that is equal to the sum of
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/reverse-string-ii/#/description 题目: Given a string and an integer k, you need to reverse the first k characters
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/detect-capital/#/description 题目: Given a word, you need to judge whether the usage of capitals in it is right or
阅读全文
摘要:原题链接在这里:https://leetcode.com/problems/nth-digit/ 题目: Find the nth digit of the infinite integer sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ... Note:n
阅读全文