目前分類:LeetCode解題系列 (12)
- Jan 01 Wed 2020 14:37
LeetCode解題系列─Defanging an IP Address
- Feb 20 Wed 2019 15:42
LeetCode解題系列─Unique Morse Code Words
【原題目】:
International Morse Code defines a standard encoding where each letter is mapped to a series of dots and dashes, as follows: "a"
maps to ".-"
, "b"
maps to "-..."
, "c"
maps to "-.-."
, and so on.
- Jan 13 Sun 2019 17:45
LeetCode解題系列─Fibonacci Number
【原題目】:
The Fibonacci numbers, commonly denoted F(n)
form a sequence, called the Fibonacci sequence, such that each number is the sum of the two preceding ones, starting from 0
and 1
. That is,
- Jan 13 Sun 2019 17:39
LeetCode解題系列─Rotate String
- Jan 09 Wed 2019 14:06
LeetCode解題系列─To Lower Case
【原題目】:
Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase.
- Jan 09 Wed 2019 13:54
LeetCode解題系列─Reverse Integer
- Jan 02 Wed 2019 14:51
LeetCode解題系列─Robot Return to Origin
【原題目】:
There is a robot starting at position (0, 0), the origin, on a 2D plane. Given a sequence of its moves, judge if this robot ends up at (0, 0) after it completes its moves.
- Jan 02 Wed 2019 14:29
LeetCode解題系列─N-Repeated Element in Size 2N Array
【原題目】:
In a array A
of size 2N
, there are N+1
unique elements, and exactly one of these elements is repeated N times.
- Dec 26 Wed 2018 15:31
LeetCode解題系列─Sort Array By Parity
【原題目】:
Given an array A
of non-negative integers, return an array consisting of all the even elements of A
, followed by all the odd elements of A
.
- Dec 26 Wed 2018 15:23
LeetCode解題系列─Delete Node in a Linked List
【原題目】:
Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.
- Dec 18 Tue 2018 22:08
LeetCode解題系列─Peak Index in a Mountain Array
- Dec 12 Wed 2018 17:29
LeetCode解題系列─Unique Email Addresses