摘要: https://leetcode.com/discuss/interview-question/742523/facebook-prep-question-contiguous-subarrays-on-solution 1 int[] countSubarrays(int[] arr) { 2 i 阅读全文
posted @ 2021-01-12 07:40 新一代的天皇巨星 阅读(97) 评论(0) 推荐(0) 编辑
摘要: O(n) look for the median(or any target rank) in an array 1 class Solution { 2 public static void main(String[] args) { 3 Solution solution = new Solut 阅读全文
posted @ 2021-01-12 03:22 新一代的天皇巨星 阅读(109) 评论(0) 推荐(0) 编辑