随笔分类 -  LeetCode

上一页 1 ··· 4 5 6 7 8 9 下一页
摘要:LeetCode 0130. Surrounded Regions被围绕的区域【Medium】【Python】【DFS】 Problem "LeetCode" Given a 2D board containing and ( the letter O ), capture all regions 阅读全文
posted @ 2020-02-29 15:32 Wonz 阅读(194) 评论(0) 推荐(0)
摘要:LeetCode 0547. Friend Circles朋友圈【Medium】【Python】【DFS】 Problem "LeetCode" There are N students in a class. Some of them are friends, while some are not 阅读全文
posted @ 2020-02-29 14:40 Wonz 阅读(255) 评论(0) 推荐(0)
摘要:LeetCode 0200. Number of Islands岛屿数量【Medium】【Python】【DFS】 Problem "LeetCode" Given a 2d grid map of s (land) and s (water), count the number of island 阅读全文
posted @ 2020-02-28 23:27 Wonz 阅读(262) 评论(0) 推荐(0)
摘要:LeetCode 0695. Max Area of Island【Medium】【Python】【DFS】 Problem "LeetCode" Given a non empty 2D array of 0's and 1's, an island is a group of 's (repre 阅读全文
posted @ 2020-02-28 22:52 Wonz 阅读(120) 评论(0) 推荐(0)
摘要:LeetCode 0127. Word Ladder单词接龙【Medium】【Python】【BFS】 Problem "LeetCode" Given two words ( beginWord and endWord ), and a dictionary's word list, find t 阅读全文
posted @ 2020-02-28 22:09 Wonz 阅读(202) 评论(0) 推荐(0)
摘要:LeetCode 0279. Perfect Squares完全平方数【Medium】【Python】【BFS】 Problem "LeetCode" Given a positive integer n , find the least number of perfect square numbe 阅读全文
posted @ 2020-02-26 23:01 Wonz 阅读(330) 评论(0) 推荐(0)
摘要:LeetCode 1091. Shortest Path in Binary Matrix二进制矩阵中的最短路径【Medium】【Python】【BFS】 Problem "LeetCode" In an N by N square grid, each cell is either empty ( 阅读全文
posted @ 2020-02-26 21:40 Wonz 阅读(460) 评论(0) 推荐(0)
摘要:LeetCode 0095. Unique Binary Search Trees II不同的二叉搜索树 II【Medium】【Python】【分治】【DFS】 Problem "LeetCode" Given an integer n , generate all structurally uni 阅读全文
posted @ 2020-02-26 15:32 Wonz 阅读(112) 评论(0) 推荐(0)
摘要:LeetCode 0241. Different Ways to Add Parentheses为运算表达式设计优先级【Medium】【Python】【分治】 Problem "LeetCode" Given a string of numbers and operators, return all 阅读全文
posted @ 2020-02-25 14:20 Wonz 阅读(140) 评论(0) 推荐(0)
摘要:LeetCode 1362. Closest Divisors最接近的因数【Medium】【Python】【数学】 Problem "LeetCode" Given an integer , find the closest two integers in absolute difference w 阅读全文
posted @ 2020-02-23 18:28 Wonz 阅读(227) 评论(2) 推荐(0)
摘要:LeetCode 1360. Number of Days Between Two Dates日期之间隔几天【Easy】【Python】【数学】 Problem "LeetCode" Write a program to count the number of days between two da 阅读全文
posted @ 2020-02-23 16:59 Wonz 阅读(292) 评论(0) 推荐(0)
摘要:LeetCode 1358. Number of Substrings Containing All Three Characters包含所有三种字符的子字符串数目【Medium】【Python】【双指针】【滑窗】 Problem "LeetCode" Given a string consisti 阅读全文
posted @ 2020-02-23 10:30 Wonz 阅读(298) 评论(0) 推荐(0)
摘要:LeetCode 0034. Find First and Last Position of Element in Sorted Array在排序数组中查找元素的第一个和最后一个位置【Medium】【Python】【二分】 Problem "LeetCode" Given an array of i 阅读全文
posted @ 2020-02-23 09:08 Wonz 阅读(564) 评论(0) 推荐(0)
摘要:LeetCode 0153. Find Minimum in Rotated Sorted Array寻找旋转排序数组中的最小值【Medium】【Python】【二分】 Problem "LeetCode" Suppose an array sorted in ascending order is 阅读全文
posted @ 2020-02-22 21:57 Wonz 阅读(157) 评论(0) 推荐(0)
摘要:LeetCode 0278. First Bad Version第一个错误的版本【Easy】【Python】【二分】 Problem "LeetCode" You are a product manager and currently leading a team to develop a new 阅读全文
posted @ 2020-02-22 21:01 Wonz 阅读(181) 评论(0) 推荐(0)
摘要:LeetCode 0540. Single Element in a Sorted Array有序数组中的单一元素【Medium】【Python】【二分】 Problem "LeetCode" You are given a sorted array consisting of only integ 阅读全文
posted @ 2020-02-22 20:09 Wonz 阅读(147) 评论(0) 推荐(0)
摘要:LeetCode 0744. Find Smallest Letter Greater Than Target寻找比目标字母大的最小字母【Easy】【Python】【二分】 Problem "LeetCode" Given a list of sorted characters containing 阅读全文
posted @ 2020-02-22 16:54 Wonz 阅读(135) 评论(0) 推荐(0)
摘要:LeetCode 0069. Sqrt(x) x 的平方根【Easy】【Python】【二分】 Problem "LeetCode" Implement . Compute and return the square root of x , where x is guaranteed to be a 阅读全文
posted @ 2020-02-22 16:08 Wonz 阅读(197) 评论(0) 推荐(0)
摘要:LeetCode 0053. Maximum Subarray最大子序和【Easy】【Python】【动态规划】 Problem "LeetCode" Given an integer array , find the contiguous subarray (containing at least 阅读全文
posted @ 2020-02-21 16:36 Wonz 阅读(123) 评论(0) 推荐(0)
摘要:LeetCode 0665. Non decreasing Array非递减数列【Easy】【Python】【贪心】 Problem "LeetCode" Given an array with integers, your task is to check if it could become n 阅读全文
posted @ 2020-02-20 15:11 Wonz 阅读(266) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 下一页