
LeetCode
用来记录博主刷过的LeetCode算法题
WF帆少
随心所欲,即兴创作
展开
-
LeetCode篇:810 黑板异或游戏(JavaScript版)
记录一下刷过的LeetCode题目,这道题目涉及到的知识点主要是博弈论。原创 2021-05-22 21:04:12 · 203 阅读 · 0 评论 -
LeetCode篇:1035 不相交的线(JavaScript版)
记录一下刷过的LeetCode题目原创 2021-05-22 16:36:28 · 185 阅读 · 0 评论 -
Leecode Two Sum(Java版)
/** * @author WF帆少 * @微信 13025261795 */class Solution { public int[] twoSum(int[] nums, int target) { // 声明一个变量来存放nums.length可提高效率 int numsLength = nums.length; int[] in...原创 2019-01-19 21:49:08 · 200 阅读 · 0 评论 -
Leecode Add Two Numbers(Java版)
/** * * @author WF帆少 * @微信 13025261795 * */class Solution { public static int getListNodeLength(ListNode l) { int length = 0; while (l != null) { length++; l = l.next; } retur...原创 2019-01-21 10:34:28 · 248 阅读 · 0 评论