- 博客(4)
- 资源 (1)
- 收藏
- 关注
原创 2020-09-10
单链表反转class Solution{ //在这里仿佛是一根虎节鞭,从头到尾一节节进入这个函数中来!!! ListNode ReverseList(ListNode head){ ListNode pre=null; ListNode next=null; if(head == null){ return null; } //我就代表一直让鞭子传入进来,直到最后。 .
2020-09-10 22:34:49
59
原创 2020-09-10
LeetCode2 ListNode addTwoNumbers (ListNode l1, ListNode l2) { ListNode dummy = new ListNode(0); ListNode curr = dummy; int carry = 0; while (l1 != null || l2 != null) { int sum = 0; if (l1 != .
2020-09-10 14:35:49
53
原创 2020-09-09
LeetCode1 两数之和题目:给定一个整数数列,找出其中和为特定值的那两个数。假设每个输入都只会有一种答案!!,同样的元素不能被重用。示例:给定 nums = [2, 7, 11, 15], target = 9因为 nums[0] + nums[1] = 2 + 7 = 9所以返回 [0, 1]public class third { public static void main(String[] args) { in...
2020-09-09 13:59:30
88
原创 win10--安装android studio
win101、安装JDK1.1 下载 1.2 配置环境我的电脑->属性->高级系统设置->高级->环境变量系统变量(S)->新建系统变量->Path1.3 查看是否配置完毕打开cmdJDK完成!2、安装Android studio运行exe文件但是由于下载的是没有包含SDK文件,所以要安装一...
2018-09-23 16:49:24
530
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人