暴力
Wonz
技术很菜,但一直在学习。
微信公众号:Wonz
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeetCode | 1408. String Matching in an Array数组中的字符串匹配【Python】
LeetCode 1408. String Matching in an Array数组中的字符串匹配【Easy】【Python】【字符串】原创 2020-04-12 21:23:24 · 978 阅读 · 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 · 1125 阅读 · 0 评论 -
LeetCode | 1395. Count Number of Teams统计作战单位数【Python】
LeetCode 1395. Count Number of Teams统计作战单位数【Medium】【Python】【暴力】原创 2020-03-29 14:38:08 · 1107 阅读 · 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 · 1220 阅读 · 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 · 1276 阅读 · 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 · 651 阅读 · 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 · 555 阅读 · 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 · 608 阅读 · 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 · 1140 阅读 · 0 评论 -
洛谷 | P1162 填涂颜色
搜索 专题 题目链接: 洛谷 P1162 填涂颜色 题目描述 输入输出格式 时空限制 时间:1000ms 空间:128MB 思路 其实我还不会 BFS ,看了题解,发现有人直接用 暴力 解决了,我就好奇试了一下,结果 AC 了。真的神奇。 初始化,把所有为 0 的先改成 2,然后在 BFS 里面,先判断外围的 2 要恢复成 0,然后二重循环,把不在圈内的 2 恢复成 0,如此循环 9...原创 2019-03-26 00:05:17 · 801 阅读 · 0 评论
分享