![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
小菜鸟的java成长史
这个作者很懒,什么都没留下…
展开
-
有效的括号( LeetCode 20 )
题目链接https://leetcode.cn/problems/valid-parentheses/代码实现原创 2022-05-13 08:13:14 · 264 阅读 · 0 评论 -
复制带随机指针的链表( LeetCode 138 )
题目链接https://leetcode.cn/problems/copy-list-with-random-pointer/问题分析https://www.algomooc.com/708.html代码实现java/*// Definition for a Node.class Node { int val; Node next; Node random; public Node(int val) { this.val = val;原创 2022-05-12 23:47:07 · 332 阅读 · 0 评论 -
反转链表 II ( LeetCode 92 )
题目链接https://leetcode.cn/problems/reverse-linked-list-ii/题目解析方法1:递归算法思想:将需要旋转的部分取出,利用递归方法(参考:https://editor.csdn.net/md/?articleId=124715935)进行链表反转,然后再与原链表其余部分进行链接。/** * Definition for singly-linked list. * public class ListNode { * int val; *原创 2022-05-12 22:12:12 · 272 阅读 · 0 评论 -
环形链表 II ( LeetCode 142 )
题目链接https://leetcode.cn/problems/linked-list-cycle-ii/代码java在这里插入代码片原创 2022-05-12 10:38:30 · 256 阅读 · 0 评论 -
分隔链表 ( LeetCode 86 )
题目链接https://leetcode.cn/problems/partition-list/代码java/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode() {} * ListNode(int val) { this.val = val; } * ListNode(int val,原创 2022-05-11 20:12:08 · 157 阅读 · 0 评论 -
相交链表( LeetCode 160 )
题目链接https://leetcode.cn/problems/intersection-of-two-linked-lists-lcci/代码实现java/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(int x) { * val = x; * next = nul原创 2022-05-11 18:32:27 · 116 阅读 · 0 评论 -
反转链表( LeetCode 206 )
题目链接https://leetcode.cn/problems/reverse-linked-list/代码实现java/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode() {} * ListNode(int val) { this.val = val; } * ListNode(in原创 2022-05-11 18:22:12 · 141 阅读 · 0 评论 -
合并两个有序链表 ( LeetCode 21 )
题目链接https://leetcode.cn/problems/merge-two-sorted-lists/代码/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode() {} * ListNode(int val) { this.val = val; } * ListNode(int va原创 2022-05-11 18:16:14 · 117 阅读 · 0 评论 -
虚拟机Centos7系统安装tensorflow踩坑记录
虚拟机Centos7系统安装tensorflow踩坑记录环境1、下载tensorflow后导入出现: illegal instruction解决方案:加载tensorflow模型时出现:AttributeError: module ‘tensorboard’ has no attribute ‘lazy’加载tensorflow模型时报错:AttributeError: 'str' object has no attribute 'decode' “加载tensorflow模型时报错:KeyError:'s原创 2021-08-31 13:01:44 · 703 阅读 · 0 评论