• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
鱼市口
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2 3 4 下一页
2022年12月29日
Leetcode203
摘要: 题意:去掉给定头ListNode* head 的单链表内 val 等于一个 给定val的节点并返回头 思路:此题删除链表中元素是很简单的,只需要让待删节点之前一个节点指向待删节点之后一个节点即可。 此题最大的问题就是,题目要求我们要返回新链表中的头结点,如果我们就采用仅仅复制头结点的方式(用H=he 阅读全文
posted @ 2022-12-29 01:17 鱼市口 阅读(37) 评论(0) 推荐(0)
2022年12月27日
Leetcode 199
摘要: 199. Binary Tree Right Side View Given the root of a binary tree, imagine yourself standing on the right side of it, return the values of the nodes yo 阅读全文
posted @ 2022-12-27 23:20 鱼市口 阅读(23) 评论(0) 推荐(0)
2022年12月26日
Leetcode207
摘要: numCourses->总的课程数目 Prerequisited->pair in a list denoting have to finish b to study a class Solution: def canFinish(self, numCourses: int, prerequisit 阅读全文
posted @ 2022-12-26 13:24 鱼市口 阅读(27) 评论(0) 推荐(0)
2022年12月24日
Leetcode61
摘要: !!Given the head of a linked list, rotate the list to the right by k places.!! # Definition for singly-linked list. # class ListNode(object): # def __ 阅读全文
posted @ 2022-12-24 23:27 鱼市口 阅读(26) 评论(0) 推荐(0)
2022年9月1日
Random python summary
摘要: 阅读全文
posted @ 2022-09-01 00:46 鱼市口 阅读(13) 评论(0) 推荐(0)
English Punctuations
摘要: ’ apostrophe /ə'pɒstrəfɪ/ 撇号 ~ tilde /'tɪldə/ 波浪符 * asterisk/star/pointer /'æstərɪsk/ 星号 # pound /paʊnd/ 井号 : colon /'kəʊlən/ 冒号 ; semicolon /ˌsemɪ'kə 阅读全文
posted @ 2022-09-01 00:09 鱼市口 阅读(105) 评论(0) 推荐(0)
2022年7月17日
Word Vectors/Attention - hands on after lecture
摘要: 1. Write the co-occurrence matrix {\rm X}X for this sentence, using a 4-word context window (i.e. two context words on either side of the central word 阅读全文
posted @ 2022-07-17 14:24 鱼市口 阅读(26) 评论(0) 推荐(0)
2022年7月13日
缺失数据清洗
摘要: 数据缺失分为两种:一是行记录的缺失;二是列值的缺失。 不同的数据存储和环境中对于缺失值的表示不同,例如数据库中是Null、Python返回对象是None、Pandas或Numpy中是NaN。 #导入相关库import pandas as pd import numpy as np #random d 阅读全文
posted @ 2022-07-13 20:25 鱼市口 阅读(132) 评论(1) 推荐(0)
2022年7月3日
plt.legend ax.legend
摘要: #显示图例# box = ax.get_position()# ax.set_position([box.x0, box.y0, box.width*0.8 , box.height]) #若是将图例画在坐标外边,如果放在右边,一般要给width*0.8左右的值,在上边,要给height*0.8左右 阅读全文
posted @ 2022-07-03 04:47 鱼市口 阅读(135) 评论(0) 推荐(0)
2022年6月24日
Markdown alphabet and expression writting
摘要: Markdown 写公式是很多专业都需要的,虽然Latex更加专业可惜代价较大国内不甚流行 example : f(x)=\sum_{i=1}^{100} {x} 关系运算符: ±:\pm ×:\times ÷:\div ∣:\mid ∤:\nmid ⋅:\cdot ∘:\circ ∗:\ast ⨀ 阅读全文
posted @ 2022-06-24 09:02 鱼市口 阅读(35) 评论(0) 推荐(0)
上一页 1 2 3 4 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3