leetcode第321题 LeetCode java 刷leetcode上面的题,用java语言写的
leetcode第321题说明每个代码里面都包含如下几部分:自动生成测试数据的函数: random()测试程序: main()核心函数:和LeetCode上面的模板函数同名其他:功能参见注解说明注意:为了可以在测试程序里调用进行测试,因此所有函数都用的static修饰题目1这一部分是之前写的,代码暂时不贴题目2 Add Two Numbers You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list. Input: (2 -> 4 -> 3) + (5 -> 6 -> 4) Output: 7 -> 0 -> 8题目3 Longest Substring Without Repeating Character
用户评论