06 2020 档案

摘要:再有人问你Netty是什么,就把这篇文章发给他 你要的Netty常见面试题总结,Guide搞来了! 阅读全文
posted @ 2020-06-30 13:30 doyi 阅读(117) 评论(0) 推荐(0)
摘要:靠 class Solution { public int maxProfit(int[] prices) { int profit=0; for(int i=1;i<prices.length;i++){ int tmp=prices[i]-prices[i-1]; if(tmp>0) profi 阅读全文
posted @ 2020-06-18 18:13 doyi 阅读(116) 评论(0) 推荐(0)
摘要:看了官网给的答案自己写了一遍,一开始还有点没绕清楚,我的妈。。。。 class Solution { public List<List<Integer>> generate(int numRows) { List<List<Integer>> tri=new ArrayList<>(); if(nu 阅读全文
posted @ 2020-06-18 17:59 doyi 阅读(145) 评论(0) 推荐(0)
摘要:看了官方解答的答案,不用从后面的节点倒回来更新值,直接用一个total值来存储整个的值 如果total》=0,说明能形成环路,否则错误。 注意其中的证明。 class Solution { public int canCompleteCircuit(int[] gas, int[] cost) { 阅读全文
posted @ 2020-06-17 13:46 doyi 阅读(141) 评论(0) 推荐(0)
摘要:开始想到了用前缀树,但是没写出来 class Trie { class TireNode { private boolean isEnd; TireNode[] next; public TireNode() { isEnd = false; next = new TireNode[26]; } } 阅读全文
posted @ 2020-06-14 22:51 doyi 阅读(131) 评论(0) 推荐(0)
摘要:三歪给女朋友讲解什么是Git 我用四个命令,总结了 Git 的所有套路 鹅厂是如何使用 Git 的? 阅读全文
posted @ 2020-06-08 13:53 doyi 阅读(155) 评论(0) 推荐(0)
摘要:yi开始自己想的 class Solution { public int[] productExceptSelf(int[] nums) { int[] res=new int[nums.length]; int sum=1; for(int num:nums){ sum =sum*num; } f 阅读全文
posted @ 2020-06-04 23:53 doyi 阅读(101) 评论(0) 推荐(0)
摘要:牛了 短路的思维 class Solution { int res = 0; public int sumNums(int n) { boolean x = n > 1 && sumNums(n - 1) > 0; res += n; return res; } } 作者:jyd 链接:https: 阅读全文
posted @ 2020-06-03 01:08 doyi 阅读(68) 评论(0) 推荐(0)
摘要:这个题真的是lc送给我们的儿童节礼物,简单的甜哈 class Solution { public List<Boolean> kidsWithCandies(int[] candies, int extraCandies) { int max=candies[0]; for(int i=1;i<ca 阅读全文
posted @ 2020-06-01 22:55 doyi 阅读(88) 评论(0) 推荐(0)