会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
不理不理左卫门
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
8
9
10
11
12
13
14
15
16
···
22
下一页
2022年1月19日
力扣 15 三数之和
摘要: 给你一个包含 n 个整数的数组 nums,判断 nums 中是否存在三个元素 a,b,c ,使得 a + b + c = 0 ?请你找出所有和为 0 且不重复的三元组。 注意:答案中不可以包含重复的三元组。 示例 1: 输入:nums = [-1,0,1,2,-1,-4]输出:[[-1,-1,2],
阅读全文
posted @ 2022-01-19 15:21 付玬熙
阅读(59)
评论(0)
推荐(0)
2022年1月18日
leetcode 11 盛最多水的容器 (双指针)
摘要: 给你 n 个非负整数 a1,a2,...,an,每个数代表坐标中的一个点 (i, ai) 。在坐标内画 n 条垂直线,垂直线 i 的两个端点分别为 (i, ai) 和 (i, 0) 。找出其中的两条线,使得它们与 x 轴共同构成的容器可以容纳最多的水。 说明:你不能倾斜容器。 示例 1: 输入:[1
阅读全文
posted @ 2022-01-18 19:19 付玬熙
阅读(40)
评论(0)
推荐(0)
2022年1月16日
leetcode 4 寻找两个正序数组的中位数
摘要: 给定两个大小分别为 m 和 n 的正序(从小到大)数组 nums1 和 nums2。请你找出并返回这两个正序数组的 中位数 。 算法的时间复杂度应该为 O(log (m+n)) 。 示例 1: 输入:nums1 = [1,3], nums2 = [2]输出:2.00000解释:合并数组 = [1,2
阅读全文
posted @ 2022-01-16 19:23 付玬熙
阅读(39)
评论(0)
推荐(0)
2020年11月3日
朴素贝叶斯分类器 (Naive Bayes Classifier) python实现
摘要: 简单实现来自b站大神的视频讲解:https://www.bilibili.com/video/BV1qs411a7mT 详情可以看视频链接,讲的非常好。 1 # coding=utf-8 2 from __future__ import division 3 from numpy import ar
阅读全文
posted @ 2020-11-03 21:27 付玬熙
阅读(875)
评论(0)
推荐(0)
2020年3月23日
Json转csv的网站json-csv.com如何免费|不限制大小
摘要: https://json-csv.com/是可以将json转换为csv文件的网站,今天我试了一下效果不错,但是文件大一点就需要收费。 怎么办呢?抱着试一试的心态我按下了F12,点开NetWork,发现实际的下载链接长这样: https://json-csv.com/conversion/downlo
阅读全文
posted @ 2020-03-23 19:43 付玬熙
阅读(1097)
评论(0)
推荐(1)
2020年2月14日
hdu1069 Monkey and Banana LIS
摘要: 1 #include<cstdio> 2 #include<iostream> 3 #include<algorithm> 4 #include<queue> 5 #include<map> 6 #include<vector> 7 #include<set> 8 #include<string>
阅读全文
posted @ 2020-02-14 21:00 付玬熙
阅读(6630)
评论(0)
推荐(0)
2020年2月11日
n的m划分
摘要: n的m划分: dp[i][j]表示j的i划分,也就是将j颗球放入i个袋子里面,最后的答案是dp[m][n] 状态转移方程为dp[i][j]=dp[i-1][j]+dp[i][j-i]; 划分方法有两种:①有的袋子不放球:dp[i-1][j],比如n=4,m=3,那么可以有2+2或者1+3或者4的方法
阅读全文
posted @ 2020-02-11 22:47 付玬熙
阅读(538)
评论(0)
推荐(0)
LIS 问题 二分查找优化
摘要: 按n=5,a-{4,2,3,1,5}为例 dp的值依次是: INF INF INF INF INF 4 INF INF INF INF 2 INF INF INF INF 2 3 INF INF INF 1 3 INF INF INF 1 3 5 INF INF 1 #include<cstdio>
阅读全文
posted @ 2020-02-11 20:30 付玬熙
阅读(342)
评论(0)
推荐(1)
LIS 问题
摘要: 1 #include<cstdio> 2 #include<iostream> 3 #include<algorithm> 4 #include<queue> 5 #include<map> 6 #include<vector> 7 #include<set> 8 #include<string>
阅读全文
posted @ 2020-02-11 20:28 付玬熙
阅读(113)
评论(0)
推荐(0)
2020年2月9日
多重部分和问题
摘要: 1 #include<cstdio> 2 #include<iostream> 3 #include<algorithm> 4 #include<queue> 5 #include<map> 6 #include<vector> 7 #include<set> 8 #include<string>
阅读全文
posted @ 2020-02-09 11:45 付玬熙
阅读(153)
评论(0)
推荐(0)
上一页
1
···
8
9
10
11
12
13
14
15
16
···
22
下一页
公告