zeronose
码龄6年
关注
提问 私信
  • 博客:289,968
    社区:2
    动态:37
    290,007
    总访问量
  • 205
    原创
  • 1,485,367
    排名
  • 109
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:台湾省
  • 毕业院校: 山东外事职业大学
  • 加入CSDN时间: 2019-05-09
博客简介:

zeronose的博客

查看详细资料
个人成就
  • 获得236次点赞
  • 内容获得53次评论
  • 获得1,150次收藏
  • 代码片获得3,884次分享
创作历程
  • 116篇
    2022年
  • 73篇
    2021年
  • 22篇
    2020年
成就勋章
TA的专栏
  • 传统图像算法
    1篇
  • leetcode
    75篇
  • 必备知识
    2篇
  • 算法与数据结构
    23篇
  • code tips
    30篇
  • Python基础
    20篇
  • pytorch
    1篇
  • numpy基础
    9篇
  • disentanglement
    3篇
  • 论文阅读
    12篇
  • 机器学习
    4篇
  • ubuntu
    4篇
  • AI覃秉丰tensorflow基础-学习笔记
  • keras基础
    7篇
  • CV
    11篇
  • pandas基础
    1篇
  • 代码问题
    9篇
  • GMM
    3篇
兴趣领域 设置
  • 人工智能
    opencv计算机视觉深度学习神经网络tensorflow图像处理
创作活动更多

AI大模型如何赋能电商行业,引领变革?

如何使用AI技术实现购物推荐、会员分类、商品定价等方面的创新应用?如何运用AI技术提高电商平台的销售效率和用户体验呢?欢迎分享您的看法

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

传统图像--LBP特征

一些传统的图像处理方法,留着自己看
原创
发布博客 2022.06.18 ·
444 阅读 ·
0 点赞 ·
1 评论 ·
0 收藏

滑动窗口+前缀和-9--LC1248.统计[优美子数组]

class Solution(object): def numberOfSubarrays(self, nums, k): """ :type nums: List[int] :type k: int :rtype: int """ def leK(nums, k): start = 0 odd_count = 0 count = .
原创
发布博客 2022.05.10 ·
520 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

滑动窗口+前缀和-8--LC930.和相同的二元子数组

class Solution(object): def numSubarraysWithSum(self, nums, goal): """ :type nums: List[int] :type goal: int :rtype: int """ # 1.前缀和 presum = 0 adict = {0:1} count = 0 for.
原创
发布博客 2022.05.10 ·
389 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

前缀和-LC560.和为K的子数组

class Solution(object): def subarraySum(self, nums, k): """ :type nums: List[int] :type k: int :rtype: int """ # 前缀和+哈希表优化 # 使用哈希表,空间换时间 # 在遍历的过程中构建前缀和 # 使用哈希表或者字典记录每个前缀和出现的次数 .
原创
发布博客 2022.05.09 ·
188 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

滑动窗口+前缀和-7--LC992.K个不同整数的子数组

class Solution(object): def subarraysWithKDistinct(self, nums, k): """ :type nums: List[int] :type k: int :rtype: int """ # 904题的进阶,904是寻找最长,这里限定了种类个数k # 这里涉及到状态回缩 # end在for循环里自动更新,end每次只.
原创
发布博客 2022.05.09 ·
217 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

滑动窗口-6--LC1004.最大连续1的个数III

class Solution(object): def longestOnes(self, nums, k): """ :type nums: List[int] :type k: int :rtype: int """ max_len = float('-inf') star = 0 count = 0 for end in range(len(nums.
原创
发布博客 2022.04.28 ·
164 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

滑动窗口-5--LC904.水果成篮

class Solution(object): def minWindow(self, s, t): """ :type s: str :type t: str :rtype: str """ # 滑动窗口,不定长问题 from collections import Counter temp = Counter(t) # 定义一个与t一样的滑动窗口字典 .
原创
发布博客 2022.04.28 ·
160 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

滑动窗口-4--LC76.最小覆盖子串

class Solution(object): def minWindow(self, s, t): """ :type s: str :type t: str :rtype: str """ # 滑动窗口,不定长问题 from collections import Counter temp = Counter(t) # 定义一个与t一样的滑动窗口字典 .
原创
发布博客 2022.04.27 ·
506 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

滑动窗口-3--LC567.字符串的排列

class Solution(object): def checkInclusion(self, s1, s2): """ :type s1: str :type s2: str :rtype: bool """ # 滑动窗口 # 这个题与28是同类的,都是定长的滑动窗口问题 # 不同在于,此题考虑到排列,排列乍一看比较麻烦,需要考虑的情况很多 # 我们可.
原创
发布博客 2022.04.26 ·
319 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

滑动窗口-2--LC3.无重复字符的最长子串

class Solution(object): def lengthOfLongestSubstring(self, s): """ :type s: str :rtype: int """ # 滑动窗口 if not len(s): return 0 # 最大就定义极小,最小就定义极大 res = float('-inf') i .
原创
发布博客 2022.04.26 ·
402 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

滑动窗口-1--LC28.实现strStr()

class Solution(object): def strStr(self, haystack, needle): """ :type haystack: str :type needle: str :rtype: int """ # API # return haystack.find(needle) # 滑动窗口 star = 0 .
原创
发布博客 2022.04.26 ·
377 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

双指针-2--LC977.有序数组的平方

class Solution(object): def sortedSquares(self, nums): """ :type nums: List[int] :rtype: List[int] """ # 双指针法 # 非递减顺序的整数数组有三种情况“ # 1.非负数,平方后还是非递减 # 2.负数,平方后是非递增 # 3.有正有负,要具体考虑 .
原创
发布博客 2022.04.24 ·
256 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

双指针-2--LC844.比较含退格的字符串

class Solution(object): def backspaceCompare(self, s, t): """ :type s: str :type t: str :rtype: bool """ # 1.用栈清除元素后比较 def fun(str_): result = list() for i in str_: .
原创
发布博客 2022.04.24 ·
179 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

快慢指针-1--LC26.删除有序数组中的重复项

class Solution(object): def removeDuplicates(self, nums): """ :type nums: List[int] :rtype: int """ # 快慢指针,27的进阶,先做27 # 如果len(nums)=0,没有元素,return 0 # 如果len(nums)=1,也没有重复元素,return 1 # 因此sl.
原创
发布博客 2022.04.24 ·
168 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

二分查找法-3--LC.有效的完全平方数

class Solution(object): def isPerfectSquare(self, num): """ :type num: int :rtype: bool """ # 69的进阶,二分查找法 l, r = 1, num while l<=r: mid = l + ((r-l)>>1) if mid * .
原创
发布博客 2022.04.24 ·
129 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

二分查找法-2--LC69.x的平方根

class Solution(object): def mySqrt(self, x): """ :type x: int :rtype: int """ # 二分查找法 # x平方根的整数部分是满足 k^2<=x的k的最大值,可以使用二分查找法查找k l, r, num = 0, x, -1 while l <= r: mid = l.
原创
发布博客 2022.04.24 ·
166 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

二分查找-1--LC34.在排序数组中查找元素的第一个和最后一个位置

class Solution(object): def searchRange(self, nums, target): """ :type nums: List[int] :type target: int :rtype: List[int] """ # 二分查找法 n = len(nums) if not n: return [-1, -1].
原创
发布博客 2022.04.24 ·
111 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

动态规划--LC518.零钱兑换II

class Solution(object): def change(self, amount, coins): """ :type amount: int :type coins: List[int] :rtype: int """ # 完全背包 # 每一种面额的硬币有无限个 # dp[j]:金额为j的组合数,最终目标是dp[amount] # 此时的金.
原创
发布博客 2022.04.21 ·
198 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

动态规划--LC474.一和零

class Solution(object): def findMaxForm(self, strs, m, n): """ :type strs: List[str] :type m: int :type n: int :rtype: int """ # 这个题是一个01背包问题,不一样的是,背包的容量是2维的,有m和n # 确定dp # dp[i][j.
原创
发布博客 2022.04.20 ·
668 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

动态规划--LC494.目标和

此类问题与传统的01背包问题稍有不同,尤其是状态转移方程。01背包问题会有max(),求一个最大;而此问题求的是能有多少种方法,面对第i个元素,存在取与不取的问题,最后加起来就是所有的方法。class Solution(object): def findTargetSumWays(self, nums, target): """ :type nums: List[int] :type target: int :rtype: int.
原创
发布博客 2022.04.19 ·
165 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多