摘要: There are a total of n courses you have to take, labeled from 0 to n-1. Some courses may have direct prerequisites, for example, to take course 0 you 阅读全文
posted @ 2020-06-02 11:00 Schwifty 阅读(194) 评论(0) 推荐(0)
摘要: Given a binary string s and an integer k. Return True if all binary codes of length k is a substring of s. Otherwise, return False. Example 1: Input: 阅读全文
posted @ 2020-06-02 09:45 Schwifty 阅读(264) 评论(0) 推荐(0)
摘要: Given two integer arrays of equal length target and arr. In one step, you can select any non-empty sub-array of arr and reverse it. You are allowed to 阅读全文
posted @ 2020-06-02 08:47 Schwifty 阅读(340) 评论(0) 推荐(0)