摘要: 参考:《概率论与数理统计 第四版》 阅读全文
posted @ 2022-10-04 18:30 孤舟浮岸 阅读(284) 评论(0) 推荐(0) 编辑
摘要: Numpy(Numerical Python的简称)是高性能科学计算和数据分析的基础包。 ndarray:一个具体矢量算术运算和复杂广播能力的快速且节省空间的多维数据 矢量化(表达1):是NumPy中的一种强大功能,可以把操作表达为“在整个数组上而不是在各个元素上”发生,Python内部隐式对数组的 阅读全文
posted @ 2022-10-03 21:38 孤舟浮岸 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 文件 -- 设置 -- 编辑器 -- 文件和代码模板 -- Python Script # -*-coding:utf-8 -*- # @Time: ${DATE} ${TIME} # @Author: cuishuohao # @File: ${NAME} # @Software: ${PRODU 阅读全文
posted @ 2022-10-03 12:13 孤舟浮岸 阅读(167) 评论(0) 推荐(0) 编辑
摘要: python -m pip install --upgrade pip pip install --upgrade pip python3 -m pip install --upgrade pip python -m pip install -U --force-reinstall pip 阅读全文
posted @ 2022-10-03 12:06 孤舟浮岸 阅读(24) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2022.cnblogs.com/blog/1246363/202210/1246363-20221002133529408-409952579.png) 阅读全文
posted @ 2022-10-02 13:36 孤舟浮岸 阅读(19) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2022.cnblogs.com/blog/1246363/202209/1246363-20220926192039951-1417905864.jpg) 阅读全文
posted @ 2022-09-26 19:21 孤舟浮岸 阅读(8) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2022.cnblogs.com/blog/1246363/202209/1246363-20220926170738659-781922702.jpg) 阅读全文
posted @ 2022-09-26 17:08 孤舟浮岸 阅读(4) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2022.cnblogs.com/blog/1246363/202209/1246363-20220926170316550-1480357431.jpg) 阅读全文
posted @ 2022-09-26 17:03 孤舟浮岸 阅读(20) 评论(0) 推荐(0) 编辑
摘要: Σ σ sigma 西格马 总和(大写),表面密度;跨导(小写) Φ φ,ϕ phi /faɪ/ 正态分布的性质: X的标准化 Φ(1) = 0.84 阅读全文
posted @ 2022-09-26 16:58 孤舟浮岸 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode.cn/problems/house-robber/ 方法1 学会了动态规划思路后,我独立想出来的一个方法,缺点是代码不够优雅(dp和nums的序号有错位)。 我的代码 int max(int a,int b){ return a>b?a:b; } int ro 阅读全文
posted @ 2022-07-27 04:03 孤舟浮岸 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode.cn/problems/maximum-subarray/ 之前题解的博客:https://tsuish.gitee.io/p/7a78 注:之后把这篇博客整理到hexo 我的代码 int max(int a,int b){ return a>b?a:b; } 阅读全文
posted @ 2022-07-27 03:11 孤舟浮岸 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode.cn/problems/employees-with-missing-information/ 我的代码 方法一 select employee_id from Employees where employee_id not in (select employ 阅读全文
posted @ 2022-07-02 18:53 孤舟浮岸 阅读(36) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode.cn/problems/remove-duplicates-from-sorted-array/ 我的代码 int removeDuplicates(int* nums, int numsSize){ int diff = 0,now = nums[0]-1, 阅读全文
posted @ 2022-07-02 18:32 孤舟浮岸 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode.cn/problems/patients-with-a-condition/ 我的代码 select * from Patients where conditions like 'DIAB1%' or conditions like '% DIAB1%' 提交 阅读全文
posted @ 2022-07-02 18:18 孤舟浮岸 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode.cn/problems/group-sold-products-by-the-date 我的代码 select sell_date, count(distinct(product)) num_sold, GROUP_CONCAT(distinct(produc 阅读全文
posted @ 2022-07-02 18:07 孤舟浮岸 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode.cn/problems/fix-names-in-a-table 我的代码 select user_id, concat(ucase(left(name,1)),lcase(substr(name,2))) name from Users order by u 阅读全文
posted @ 2022-07-02 17:32 孤舟浮岸 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode.cn/problems/duplicate-emails/ 我的代码 select distinct a.email from person a inner join person b on a.id!=b.id and a.email = b.email 提 阅读全文
posted @ 2022-07-02 17:11 孤舟浮岸 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode.cn/problems/sqrtx/ 我的代码 int mySqrt(int x){ long res=0,i; for(i=1;i<=x;i++){ if(i*i>x){ break; } } res=i-1; return res; } 提交结果 提交结果 阅读全文
posted @ 2022-07-02 17:09 孤舟浮岸 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode.cn/problems/employees-earning-more-than-their-managers/ 我的代码: select a.name Employee from employee a where a.salary> (select b.sal 阅读全文
posted @ 2022-07-02 17:07 孤舟浮岸 阅读(33) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode.cn/problems/combine-two-tables/ 我的代码: SELECT person.FirstName firstName, person.LastName LastName, address.City city, address.Stat 阅读全文
posted @ 2022-07-01 10:40 孤舟浮岸 阅读(23) 评论(0) 推荐(0) 编辑