随笔分类 - LeetCode
摘要:LeetCode 0130. Surrounded Regions被围绕的区域【Medium】【Python】【DFS】 Problem "LeetCode" Given a 2D board containing and ( the letter O ), capture all regions
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要: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
阅读全文
摘要:LeetCode 0127. Word Ladder单词接龙【Medium】【Python】【BFS】 Problem "LeetCode" Given two words ( beginWord and endWord ), and a dictionary's word list, find t
阅读全文
摘要:LeetCode 0279. Perfect Squares完全平方数【Medium】【Python】【BFS】 Problem "LeetCode" Given a positive integer n , find the least number of perfect square numbe
阅读全文
摘要:LeetCode 1091. Shortest Path in Binary Matrix二进制矩阵中的最短路径【Medium】【Python】【BFS】 Problem "LeetCode" In an N by N square grid, each cell is either empty (
阅读全文
摘要:LeetCode 0095. Unique Binary Search Trees II不同的二叉搜索树 II【Medium】【Python】【分治】【DFS】 Problem "LeetCode" Given an integer n , generate all structurally uni
阅读全文
摘要:LeetCode 0241. Different Ways to Add Parentheses为运算表达式设计优先级【Medium】【Python】【分治】 Problem "LeetCode" Given a string of numbers and operators, return all
阅读全文
摘要:LeetCode 1362. Closest Divisors最接近的因数【Medium】【Python】【数学】 Problem "LeetCode" Given an integer , find the closest two integers in absolute difference w
阅读全文
摘要:LeetCode 1360. Number of Days Between Two Dates日期之间隔几天【Easy】【Python】【数学】 Problem "LeetCode" Write a program to count the number of days between two da
阅读全文
摘要:LeetCode 1358. Number of Substrings Containing All Three Characters包含所有三种字符的子字符串数目【Medium】【Python】【双指针】【滑窗】 Problem "LeetCode" Given a string consisti
阅读全文
摘要:LeetCode 0034. Find First and Last Position of Element in Sorted Array在排序数组中查找元素的第一个和最后一个位置【Medium】【Python】【二分】 Problem "LeetCode" Given an array of i
阅读全文
摘要:LeetCode 0153. Find Minimum in Rotated Sorted Array寻找旋转排序数组中的最小值【Medium】【Python】【二分】 Problem "LeetCode" Suppose an array sorted in ascending order is
阅读全文
摘要:LeetCode 0278. First Bad Version第一个错误的版本【Easy】【Python】【二分】 Problem "LeetCode" You are a product manager and currently leading a team to develop a new
阅读全文
摘要:LeetCode 0540. Single Element in a Sorted Array有序数组中的单一元素【Medium】【Python】【二分】 Problem "LeetCode" You are given a sorted array consisting of only integ
阅读全文
摘要:LeetCode 0744. Find Smallest Letter Greater Than Target寻找比目标字母大的最小字母【Easy】【Python】【二分】 Problem "LeetCode" Given a list of sorted characters containing
阅读全文
摘要: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
阅读全文
摘要:LeetCode 0053. Maximum Subarray最大子序和【Easy】【Python】【动态规划】 Problem "LeetCode" Given an integer array , find the contiguous subarray (containing at least
阅读全文
摘要:LeetCode 0665. Non decreasing Array非递减数列【Easy】【Python】【贪心】 Problem "LeetCode" Given an array with integers, your task is to check if it could become n
阅读全文

浙公网安备 33010602011771号