标签: two-pointers
-
leetcode481-Magical-String
这题是描述了一个魔法字符串,该字符串完全由数字1和2构成。这个字符串的魔法点在于,如果将该该字符串连续的数字数…
-
[LeetCode] 876. Middle of the Linked List
Given a non-empty, singly linked list with head node he…
-
[LeetCode] 905. Sort Array By Parity
Given an array A of non-negative integers, return an ar…
-
[LeetCode] 487. Max Consecutive Ones II
Given a binary array, find the maximum number of consec…