- 博客(10)
- 收藏
- 关注
原创 go leetcode 16~18 最接近的三数之和 电话号码的字母组合 四数之和
16. 最接近的三数之和 3Sum Closest ★★ 17. 电话号码的字母组合 Letter-combinations-of-a-phone-number ★★ 18. 四数之和 4Sum ★★
2023-04-24 09:27:07
180
原创 go leetcode 13~15 罗马数字转整数 最长公共前缀 三数之和
13. 罗马数字转整数 Roman to Integer ★ 14. 最长公共前缀 Longest Common Prefix★ 15. 三数之和 3Sum★★★
2023-04-24 09:24:56
95
原创 go leetcode 10~12 正则表达式匹配 盛最多水的容器 整数转罗马数字
10.正则表达式匹配Regular Expression Matching 11. 盛最多水的容器 Container with most water 12. 整数转罗马数字 Integer to Roman
2023-04-24 09:21:18
124
原创 go leetcode 7~9 整数反转 字符串转换整数 回文数
7. 整数反转 Reverse Integer 8. 字符串转换整数 String-to-integer (atoi) 9. 回文数 Palindrome Number
2023-04-24 09:17:49
127
原创 go leetcode 4~6 寻找两个正序数组的中位数 最长回文子串 Z字形变换
4. 寻找两个正序数组的中位数Median of two sorted arrays 5. 最长回文子串 Longest Palindromic Substring 6. Z字形变换 Zigzag Conversion
2023-04-24 09:16:28
95
原创 go leetcode 1~3 两数之和 两数相加 无重复字符的最长子串
1. 两数之和 Two Sum 2.两数相加 Add Two Numbers 3.无重复字符的最长子串
2023-04-24 09:11:46
59
原创 【一起来刷题吧】2021.10.20 求阶乘数列的和
【每日一题】2021.10.20 F(n)=1!+2!+3!+...+n!, 编程求F(50), F(100), F(1000)的值(n! 表示阶乘运算) 编程语言:包括但不限于Python 先说阶乘函数的递归法: def F(n): if n==1: return 1 return n*F(n-1) 可以用三元表达式合并成一行: def F(n): return 1 if n==1 else n*F(n-1) 用逻辑运算改写三元表达式: def fact(n.
2021-11-03 19:13:59
219
1
原创 【一起来刷题吧】2021.10.19 求连续根号的值
(编程语言不限)F(n)=√[1+√[2+√[3+…+√[n-1+√[n]]]]], 编程求F(50), F(100), F(3000)的值(方括号表示数字在对应根号下) 以下两种循环都可以: def F1(n): res = n for i in range(n-1,0,-1): res = i + res**0.5 return res**0.5 def F2(n): res = n**0.5 for i in range(n-1,0,-1): res = (i + re.
2021-11-03 17:36:29
297
原创 转发主号博客地址,诚信互访
给大家强烈推荐新写的:️ 《Python 有没有羡慕别人家做的排序动图?❤️来,手把手保姆级地教你也做一个!❤️》 https://blog.youkuaiyun.com/boysoft2002/article/details/120319189 第一次标题加俩红心❤️觉得还行的话,点个赞+收藏,留下评论,这个对博主很重要,谢谢 还有一篇不推荐的:https://blog.youkuaiyun.com/boysoft2002/article/details/120310028 点赞可有可无 有访必回,诚信保证!!! ...
2021-09-16 12:45:16
140
2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人