摘要: 题目如下: In an N by N square grid, each cell is either empty (0) or blocked (1). A clear path from top-left to bottom-right has length k if and only if i 阅读全文
posted @ 2019-06-18 13:49 seyjs 阅读(881) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given an integer array A, you partition the array into (contiguous) subarrays of length at most K. After partitioning, each subarray has their v 阅读全文
posted @ 2019-06-18 13:44 seyjs 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 题目如下: We have a set of items: the i-th item has value values[i] and label labels[i]. Then, we choose a subset S of these items, such that: |S| <= num_ 阅读全文
posted @ 2019-06-18 13:34 seyjs 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 题目如下: Given a fixed length array arr of integers, duplicate each occurrence of zero, shifting the remaining elements to the right. Note that elements 阅读全文
posted @ 2019-06-18 13:25 seyjs 阅读(677) 评论(0) 推荐(0) 编辑