摘要: Some ideas About invisible bugs Leetcode 532 as example: Following... 阅读全文
posted @ 2020-12-17 06:05 EvanMeetTheWorld 阅读(19) 评论(0) 推荐(0)
摘要: x & (-x) to keep the rightmost 1-bit and to set all the others bit... 阅读全文
posted @ 2020-12-17 05:59 EvanMeetTheWorld 阅读(26) 评论(0) 推荐(0)
摘要: Given a 2D board containing ‘X’ and ‘O’ (the letter O), capture al... 阅读全文
posted @ 2020-12-17 05:57 EvanMeetTheWorld 阅读(24) 评论(0) 推荐(0)
摘要: Given a sorted array of distinct integers and a target value, retu... 阅读全文
posted @ 2020-12-17 05:33 EvanMeetTheWorld 阅读(26) 评论(0) 推荐(0)
摘要: Given a collection of integers that might contain duplicates, nums... 阅读全文
posted @ 2020-12-17 01:01 EvanMeetTheWorld 阅读(30) 评论(0) 推荐(0)
摘要: Given an input string , reverse the string word by word. Input: [“... 阅读全文
posted @ 2020-12-17 01:00 EvanMeetTheWorld 阅读(17) 评论(0) 推荐(0)
摘要: 这道题可以说是很经典了。 对每一个点进行bfs 注意对遍历过的点的值的修改 用于防止多次重复统计。而且我们不用像backtracki... 阅读全文
posted @ 2020-12-17 00:58 EvanMeetTheWorld 阅读(24) 评论(0) 推荐(0)
摘要: 在debug的时候还挺重要的 因为有的时候是因为类型转换的错误 而且这总错误还很蛋疼。而且有的时候还要判断某个方法到底是有没有返回。... 阅读全文
posted @ 2020-12-17 00:57 EvanMeetTheWorld 阅读(56) 评论(0) 推荐(0)
摘要: 这两道题目 简直就是怪异方法使用大合集 toArray(), copyOf()从来不敢使用 现在 都用上了 现在是时候好好研究一下这... 阅读全文
posted @ 2020-12-17 00:55 EvanMeetTheWorld 阅读(23) 评论(0) 推荐(0)
摘要: 经典场景(同时也是高频出错场景): 很多时候 我们想把list转化成int[] 或者把int[]转化成list.但是这其中因为原始类... 阅读全文
posted @ 2020-12-17 00:53 EvanMeetTheWorld 阅读(446) 评论(0) 推荐(0)