归档 2018年3月18日

[LeetCode]Minimum Swaps To Make Sequences Increasing

题目描述:

LeetCode 801. Minimum Swaps To Make Sequences Increasing

We have two integer sequences A and B of the same non-zero length.

We are allowed to swap elements A[i] and B[i].  Note that both elements are in the same ...

继续阅读

[LeetCode]Similar RGB Color

题目描述:

LeetCode 800. Similar RGB Color

In the following, every capital letter represents some hexadecimal digit from 0 to f.

The red-green-blue color "#AABBCC" can be written as "#ABC" in shorthand.  For example, "#15c" is shorthand for the color "#1155cc". ...

继续阅读

昨天

明天

归档