摘要: 常见机器学习算法 from sklearn import svm, tree, linear_model, neighbors, naive_bayes, ensemble, discriminant_analysis, gaussian_process from xgboost import XG 阅读全文
posted @ 2022-07-15 21:12 是冰美式诶 阅读(231) 评论(0) 推荐(0)
摘要: #简单梳理下题意:比如给你3421这个数,那要在保证有上升且上升幅度最小,那就是4321了 #如果没法上升,就返回最小的1234 class Solution: def nextPermutation(self, nums: List[int]) -> None: """ Do not return 阅读全文
posted @ 2022-07-15 16:53 是冰美式诶 阅读(31) 评论(0) 推荐(0)
摘要: #暴力解法 #子序列:可以不连续 #子串:必须连续 class Solution: def findSubstring(self, s: str, words: List[str]) -> List[int]: from collections import Counter #Python coun 阅读全文
posted @ 2022-07-15 16:06 是冰美式诶 阅读(34) 评论(0) 推荐(0)