
队列
鸡蛋豆腐仙子
从本科开始讨厌了单片机 晶体管 编程 c++5-6年后,发现技术就是我的真爱,再重新选择一次,我还是会选择当程序员。我现在觉得自己什么都不会,可是还是相信会变成别人仰望的大神。
展开
-
【刷题】leetcode 621 task schedule
Given a characters array tasks, representing the tasks a CPU needs to do, where each letter represents a different task. Tasks could be done in any order. Each task is done in one unit of time. For each unit of time, the CPU could complete either one task原创 2020-10-08 15:07:51 · 100 阅读 · 0 评论 -
【刷题】Leetcode 862. Shortest Subarray with Sum at Least K
暴力解 class Solution { public int shortestSubarray(int[] A, int K) { int[] P = new int[A.length + 1]; for(int i = 0; i < A.length; i++){ P[i + 1] = P[i] + A[i]; ...原创 2019-12-05 19:53:04 · 85 阅读 · 0 评论