![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
暴力
Wonz
后端 -> 全栈 -> 后端
技术很菜,但一直在学习。
「人们会被自己热爱的事物改变」
展开
-
LeetCode | 1408. String Matching in an Array数组中的字符串匹配【Python】
LeetCode 1408. String Matching in an Array数组中的字符串匹配【Easy】【Python】【字符串】原创 2020-04-12 21:23:24 · 798 阅读 · 0 评论 -
LeetCode | 1394. Find Lucky Integer in an Array找出数组中的幸运数【Python】
LeetCode 1394. Find Lucky Integer in an Array找出数组中的幸运数【Easy】【Python】【暴力】原创 2020-03-29 14:54:14 · 907 阅读 · 0 评论 -
LeetCode | 1395. Count Number of Teams统计作战单位数【Python】
LeetCode 1395. Count Number of Teams统计作战单位数【Medium】【Python】【暴力】原创 2020-03-29 14:38:08 · 920 阅读 · 0 评论 -
LeetCode | 1385. Find the Distance Value Between Two Arrays两个数组间的距离值【Python】
LeetCode 1385. Find the Distance Value Between Two Arrays两个数组间的距离值【Easy】【Python】【暴力】原创 2020-03-22 09:45:57 · 987 阅读 · 0 评论 -
LeetCode | 1380. Lucky Numbers in a Matrix矩阵中的幸运数【Python】
LeetCode 1380. Lucky Numbers in a Matrix矩阵中的幸运数【Easy】【Python】【暴力】 Problem LeetCode Given a m * n matrix of distinct numbers, return all lucky numbers in the matrix in any order. A lucky number is an...原创 2020-03-15 13:45:20 · 1003 阅读 · 0 评论 -
LeetCode | 1103. Distribute Candies to People分糖果 II【Python】
LeetCode 1103. Distribute Candies to People分糖果 II【Easy】【Python】【暴力】 Problem LeetCode We distribute some number of candies, to a row of n = num_people people in the following way: We then give 1 cand...原创 2020-03-05 15:12:21 · 469 阅读 · 0 评论 -
LeetCode | 0017. Letter Combinations of a Phone Number电话号码的字母组合【Python】
LeetCode 0017. Letter Combinations of a Phone Number电话号码的字母组合【Medium】【Python】【回溯】【DFS】【暴力】 Problem LeetCode Given a string containing digits from 2-9 inclusive, return all possible letter combinatio...原创 2020-03-04 21:12:52 · 371 阅读 · 0 评论 -
LeetCode | 0093. Restore IP Addresses复原IP地址【Python】
LeetCode 0093. Restore IP Addresses复原IP地址【Medium】【Python】【回溯】【DFS】【暴力】 Problem LeetCode Given a string containing only digits, restore it by returning all possible valid IP address combinations. Exa...原创 2020-03-04 20:48:29 · 440 阅读 · 0 评论 -
LeetCode | 1365. How Many Numbers Are Smaller Than the Current Number有多少小于当前数字的数字【Python】
LeetCode 1365. How Many Numbers Are Smaller Than the Current Number有多少小于当前数字的数字【Easy】【Python】【暴力】 Problem LeetCode Given the array nums, for each nums[i] find out how many numbers in the array are s...原创 2020-03-01 15:35:44 · 953 阅读 · 0 评论 -
洛谷 | P1162 填涂颜色
搜索 专题 题目链接: 洛谷 P1162 填涂颜色 题目描述 输入输出格式 时空限制 时间:1000ms 空间:128MB 思路 其实我还不会 BFS ,看了题解,发现有人直接用 暴力 解决了,我就好奇试了一下,结果 AC 了。真的神奇。 初始化,把所有为 0 的先改成 2,然后在 BFS 里面,先判断外围的 2 要恢复成 0,然后二重循环,把不在圈内的 2 恢复成 0,如此循环 9...原创 2019-03-26 00:05:17 · 597 阅读 · 0 评论