09 2019 档案

摘要:Given an array , partition it into two (contiguous) subarrays and so that: Every element in is less than or equal to every element in . and are non em 阅读全文
posted @ 2019-09-29 23:25 Grandyang 阅读(2070) 评论(0) 推荐(0) 编辑
摘要:Given a positive integer , how many ways can we write it as a sum of consecutive positive integers? Example 1: Example 2: Example 3: Note: `1 这道题给了一个正 阅读全文
posted @ 2019-09-26 23:54 Grandyang 阅读(3859) 评论(2) 推荐(0) 编辑
摘要:In a deck of cards, each card has an integer written on it. Return if and only if you can choose such that it is possible to split the entire deck int 阅读全文
posted @ 2019-09-23 23:20 Grandyang 阅读(2474) 评论(0) 推荐(0) 编辑
摘要:An undirected, connected tree with N nodes labelled 0...N-1 and N-1 edges are given. The ith edge connects nodes edges[i][0] and edges[i][1] together. 阅读全文
posted @ 2019-09-14 23:46 Grandyang 阅读(5152) 评论(1) 推荐(2) 编辑
摘要:A game on an undirected graph is played by two players, Mouse and Cat, who alternate turns. The graph is given as follows: is a list of all nodes such 阅读全文
posted @ 2019-09-12 23:55 Grandyang 阅读(4328) 评论(4) 推荐(0) 编辑
摘要:Two strings X and Y are similar if we can swap two letters (in different positions) of X, so that it equals Y. For example, "tars" and "rats" are simi 阅读全文
posted @ 2019-09-10 22:14 Grandyang 阅读(3260) 评论(5) 推荐(0) 编辑
摘要:Given an array of integers , sort the array in ascending order. Example 1: Example 2: Note: 1. `1 这道题让我们给数组排序,在平时刷其他题的时候,遇到要排序的时候,一般都会调用系统自带的排序函数,像 C+ 阅读全文
posted @ 2019-09-07 23:52 Grandyang 阅读(5129) 评论(1) 推荐(0) 编辑
摘要:This problem is an interactive problem new to the LeetCode platform. We are given a word list of unique words, each word is 6 letters long, and one wo 阅读全文
posted @ 2019-09-02 21:45 Grandyang 阅读(6506) 评论(0) 推荐(0) 编辑

Fork me on GitHub