摘要: 原题链接在这里:https://leetcode.com/problems/two-sum-less-than-k/ 题目: Given an array A of integers and integer K, return the maximum S such that there exists 阅读全文
posted @ 2019-08-17 12:05 Dylan_Java_NYC 阅读(2551) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/shortest-distance-to-a-character/ 题目: Given a string S and a character C, return an array of integers representi 阅读全文
posted @ 2019-08-17 11:12 Dylan_Java_NYC 阅读(331) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/max-chunks-to-make-sorted-ii/ 题目: This question is the same as "Max Chunks to Make Sorted" except the integers o 阅读全文
posted @ 2019-08-17 07:03 Dylan_Java_NYC 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/max-chunks-to-make-sorted/ 题目: Given an array arr that is a permutation of [0, 1, ..., arr.length - 1], we split 阅读全文
posted @ 2019-08-17 06:31 Dylan_Java_NYC 阅读(273) 评论(0) 推荐(0) 编辑