momottyy
码龄12年
关注
提问 私信
  • 博客:130,181
    社区:89
    130,270
    总访问量
  • 202
    原创
  • 1,534,115
    排名
  • 22
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:上海市
  • 加入CSDN时间: 2013-03-19
博客简介:

momottyy的专栏

博客描述:
自律 自由
查看详细资料
个人成就
  • 获得49次点赞
  • 内容获得24次评论
  • 获得159次收藏
  • 代码片获得162次分享
创作历程
  • 2篇
    2020年
  • 56篇
    2019年
  • 97篇
    2018年
  • 47篇
    2017年
成就勋章
TA的专栏
  • matplotlib
    1篇
  • PAT advance
    24篇
  • 机器学习
    12篇
  • 计蒜客
    4篇
  • 前端
    2篇
  • web
    1篇
  • nodejs
    1篇
  • mysql
  • c/c++
    15篇
  • PAT basic
    2篇
  • leetcode
    126篇
  • javascript
  • html
  • python
    120篇
  • anaconda
    3篇
  • pandas
    3篇
  • homebrew
    2篇
  • mac
    2篇
  • docker
  • 算法
  • css
  • ubuntu
  • 服务器
    1篇
  • 运维
    1篇
  • nginx
兴趣领域 设置
  • 前端
    javascriptcssreact.jses6webpack前端框架
  • 后端
    node.js
  • 网络与通信
    https
  • 学习和成长
    面试
创作活动更多

HarmonyOS开发者社区有奖征文来啦!

用文字记录下您与HarmonyOS的故事。参与活动,还有机会赢奖,快来加入我们吧!

0人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

【Javascript】leetcode 18.4Sum

Given an arraynumsofnintegers and an integertarget, are there elementsa,b,c, anddinnumssuch thata+b+c+d=target? Find all unique quadruplets in the array which gives the sum oftarget.Note:The solution set must not contain duplicat...
原创
发布博客 2020.05.11 ·
233 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【Javascript】leetcode 15. 3Sum

Given an arraynumsofnintegers, are there elementsa,b,cinnumssuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:The solution set must not contain duplicate triplets.Example:Given array nums = ...
原创
发布博客 2020.05.11 ·
197 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【matplotlib】解决中文变成框的显示问题

环境:macos anaconda3/python3.6参考:1matplotlib图例中文乱码?1 下载中文字体SimHei2 将下载好的simhei字体文件SimHei.ttf拷贝到matplotlib字体文件夹(matplotlib/mpl-data/fonts/ttf)里这里要查找你使用的matplotlib的pakage是下载到了哪里,可以在python中通过使用...
原创
发布博客 2019.11.17 ·
490 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【ubuntu16.04服务器登陆配置】新建管理员用户、禁用root登陆、密钥登陆配置

需求:快速安全进入服务器的配置我在阿里云上购买了一台轻量应用服务器,使用ssh密码登陆很费时,以及用root用户操作涉及很多后患,所以需要进行无密登陆、新增管理员用户等操作的配置服务器配置:ubuntu16.04本地:maxos 10.12.16ssh登陆方式:$ssh -p 22 root@xx.xx.xx.xx 输入密码即可进入服务器(如果你的本地ssh都没有,请先安...
原创
发布博客 2019.06.23 ·
734 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

django 静态文件404配置

参考:https://code.ziqiangxuetang.com/django/django-static-files.html1 确保setting.py:INSTALLED_APPS里有'django.contrib.staticfiles',2STATIC_URL = '/static/'STATICFILES_DIRS = ( os.path.join(B...
原创
发布博客 2019.05.23 ·
3291 阅读 ·
2 点赞 ·
0 评论 ·
1 收藏

【pandas】get_dummies对特征进行onehot encoder测试集特征的一致性等坑

在对分类特征进行处理时,我们经常会把这类特征转成独热编码(onehot)在sklearn中有OneHotEncoder,但是使用比较麻烦,万幸是pandas有对应的get_dummiespandas.get_dummies(data,prefix=None,prefix_sep='_',dummy_na=False,columns=None,sparse=False,drop...
原创
发布博客 2019.03.16 ·
3635 阅读 ·
8 点赞 ·
3 评论 ·
23 收藏

【python3】leetcode 153. Find Minimum in Rotated Sorted Array(Medium)

153. Find Minimum in Rotated Sorted Array(Medium)Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.(i.e.,  [0,1,2,4,5,6,7] might become  [4,5,6,7,0,1,2...
原创
发布博客 2019.01.24 ·
261 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【python3】leetcode 34. Find First and Last Position of Element in Sorted Array(Medium)

34. Find First and Last Position of Element in Sorted Array(Medium)Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value.Your al...
原创
发布博客 2019.01.20 ·
302 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【python3】从leetcode 744 & 367 & 74 & 240 &33 & 69 &29 & 441讲解二分搜索

  目录二分搜索模版744. Find Smallest Letter Greater Than Target367. Valid Perfect Square74. Search a 2D Matrix240. Search a 2D Matrix II33. Search in Rotated Sorted Array69. Sqrt(x)29. D...
原创
发布博客 2019.01.18 ·
246 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【python3】从leetcode 114 & 589 讲解关于树的先序遍历题

先序遍历 preorder遍历顺序:根结点-左子树-右子树,如下图蓝色为先序(4个算法的遍历结果都为12345)1 递归写法 def pretraversal(root): preval.append(root.val) if root.left:pretraversal(root.left)...
原创
发布博客 2019.01.17 ·
243 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【python3】从leetcode 102& 104 & 559 & 429 &111 讲解关于树的层序遍历题

树的结点定义# Definition for a Node.class Node(object): def __init__(self, val, children): self.val = val self.children = children二叉树结点定义# Definition for a binary tree node.cl...
原创
发布博客 2019.01.17 ·
178 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【python3】leetcode 82. Remove Duplicates from Sorted List II (Medium)

82. Remove Duplicates from Sorted List II (Medium)Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.Example 1:Input...
原创
发布博客 2019.01.16 ·
281 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【mac】修改mac默认终端和样式

系统macos 10.12.6相信很多使用mac的程序员 对mac自带的terminal终端样式诟病已久,因为自带终端字体太小无法放大 (在写这个教程的时候我发现自带终端通过左上角菜单栏-偏好设置-找到字体更改 也可以放大字体啦),而且没有高亮括号匹配等等特效,对程序员而言始终不是很高效,所以我今天尝试改了一下终端样式,又get到一项(无用)技能呢~修改样式后如下,4不4很可爱呢(咦为...
原创
发布博客 2019.01.16 ·
10681 阅读 ·
0 点赞 ·
1 评论 ·
7 收藏

【python3】leetcode 86. Partition List (Medium)

 86. Partition List (Medium)Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.You should preserve the original relative ...
原创
发布博客 2019.01.15 ·
194 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【python3】leetcode 143. Reorder List(Medium)

143. Reorder List(Medium)Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You may not modify the values in the list's nodes, only nodes itself may be changed....
原创
发布博客 2019.01.15 ·
214 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【python3】leetcode 500. Keyboard Row (easy)

500. Keyboard Row (easy)Given a List of words, return the words that can be typed using letters of alphabet on only one row's of American keyboard like the image below.  Example:Input: ["...
原创
发布博客 2019.01.15 ·
195 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【python3】leetcode 61. Rotate List (Medium)

61. Rotate List (Medium) Given a linked list, rotate the list to the right by k places, where k is non-negative.Example 1:Input: 1->2->3->4->5->NULL, k = 2Output: 4->5->1...
原创
发布博客 2019.01.14 ·
291 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【python3】leetcode 442. Find All Duplicates in an Array (Medium)

442. Find All Duplicates in an Array (Medium) Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.Find all the elements that appear twi...
原创
发布博客 2019.01.14 ·
145 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【python3】leetcode 228. Summary Ranges (Medium)

228. Summary Ranges (Medium) Given a sorted integer array without duplicates, return the summary of its ranges.Example 1:Input: [0,1,2,4,5,7]Output: ["0->2","4->5","7"]Explanation: 0,...
原创
发布博客 2019.01.14 ·
196 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

【python3】leetcode 56. Merge Intervals (Medium)

 56. Merge Intervals (Medium)Given a collection of intervals, merge all overlapping intervals.Example 1:Input: [[1,3],[2,6],[8,10],[15,18]]Output: [[1,6],[8,10],[15,18]]Explanation: Since in...
原创
发布博客 2019.01.14 ·
151 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多