- 博客(4)
- 收藏
- 关注
原创 LeetCode之Sort Array By Parity(Kotlin)
问题: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.You may return any answer array that satisfies this con...
2018-09-22 18:51:03 207
原创 LeetCode之All Paths From Source to Target(Kotlin)
问题: Given a directed, acyclic graph of N nodes. Find all possible paths from node 0 to node N-1, and return them in any order. The graph is given as follows: the nodes are 0, 1, …, graph.le...
2018-09-16 13:32:32 147
原创 LeetCode之Peak Index in a Mountain Array(Kotlin)
问题: Let’s call an array A a mountain if the following properties hold: A.length >= 3 There exists some 0 < i < A.length - 1 such that A[0] < A[1] < … A[i-1] < A[i] > A...
2018-09-10 13:52:02 190
原创 LeetCode之Flipping an Image(Kotlin)
问题: Given a binary matrix A, we want to flip the image horizontally, then invert it, and return the resulting image. To flip an image horizontally means that each row of the image is reversed...
2018-09-05 14:34:18 123
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人