摘要: 题目: ![](https://img2023.cnblogs.com/blog/2679751/202307/2679751-20230720202030650-1945110898.png) ``` /** * Definition for singly-linked list. * struc 阅读全文
posted @ 2023-07-20 20:22 孜孜不倦fly 阅读(10) 评论(0) 推荐(0)
摘要: ``` import torch import net.bilstm import net.transformer from ptflops import get_model_complexity_info device = torch.device("cuda:0" if torch.cuda.i 阅读全文
posted @ 2023-07-20 16:58 孜孜不倦fly 阅读(221) 评论(0) 推荐(0)
摘要: 推荐使用: ``` sudo apt-get install open-vm-tools-desktop sudo reboot ``` **不推荐自带的安装vmware-tools的方法!** 阅读全文
posted @ 2023-07-20 14:57 孜孜不倦fly 阅读(123) 评论(0) 推荐(0)
摘要: 题目 ![](https://img2023.cnblogs.com/blog/2679751/202307/2679751-20230719221809046-913002306.png) ``` class Solution { public: int strToInt(string str) 阅读全文
posted @ 2023-07-19 22:24 孜孜不倦fly 阅读(11) 评论(0) 推荐(0)
摘要: 题目: //遇到数字:一定合法 //遇到'.'且合法需要满足条件:之前没出现过'.',之前没出现过'e' //遇到'e'且合法需要满足条件:之前没出现过'e',之前出现过整数 //遇到'+'或者'-'且合法需要满足条件:位于字符串第一位,或者紧跟在'e'之后 class Solution { pub 阅读全文
posted @ 2023-07-19 20:56 孜孜不倦fly 阅读(36) 评论(0) 推荐(0)
摘要: 题目: ![](https://img2023.cnblogs.com/blog/2679751/202307/2679751-20230719210019388-233593408.png) ``` class Solution { public: string reverseLeftWords( 阅读全文
posted @ 2023-07-18 20:47 孜孜不倦fly 阅读(10) 评论(0) 推荐(0)
摘要: 题目: ![](https://img2023.cnblogs.com/blog/2679751/202307/2679751-20230719205939606-1117824637.png) ``` class Solution { public: string replaceSpace(str 阅读全文
posted @ 2023-07-18 20:38 孜孜不倦fly 阅读(19) 评论(0) 推荐(0)
摘要: **前驱替换法** 用被删除节点左子树最右边的节点的值来替换被删除节点 ![](https://img2023.cnblogs.com/blog/2679751/202307/2679751-20230717153623469-344447763.png) 上图删除了节点11 阅读全文
posted @ 2023-07-17 15:36 孜孜不倦fly 阅读(23) 评论(0) 推荐(0)
摘要: **权限只取决于低的那个权限** 1.子类通过public方式继承父类,则父类中的**public、protected、private**属性的成员在子类中依次是 public、protected和private 性,即通过public继承并不会改变父类原来的数据属性。 2.子类通过**protec 阅读全文
posted @ 2023-07-14 16:31 孜孜不倦fly 阅读(289) 评论(0) 推荐(0)
摘要: 1.在git中执行: ``` git config --global --unset http.proxy git config --global --unset https.proxy ``` 2.在电脑上cmd中执行 ``` ipconfig/flushdns ``` 问题解决!(个人出现该问题 阅读全文
posted @ 2023-07-13 11:14 孜孜不倦fly 阅读(209) 评论(0) 推荐(0)