文章 2023-05-22 来自:开发者社区

Python 刷Leetcode题库,顺带学英语单词(33)

Palindrome PartitioningGiven a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome partitioning of s.   [#131]Example: Input: "aab" Ou....

文章 2023-05-22 来自:开发者社区

Python 刷Leetcode题库,顺带学英语单词(32)

Word LadderGiven two words (beginWord and endWord), and a dictionary's word list, find the length of shortest transformation sequence from beginWord to endWord, such that:1. Only one letter can be ch....

文章 2023-05-22 来自:开发者社区

Python 刷Leetcode题库,顺带学英语单词(31)

Valid PalindromeGiven a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.   [#125]Example: "A man, a plan, a canal: Panama" is a palindrome. "....

文章 2023-05-22 来自:开发者社区

Python 刷Leetcode题库,顺带学英语单词(30)

Best Time to Buy and Sell StockSay you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transaction (i.e., buy one and....

文章 2023-05-22 来自:开发者社区

Python 刷Leetcode题库,顺带学英语单词(29)

Decode WaysA message containing letters from A-Z is being encoded to numbers using the following mapping:'A' -> 1 'B' -> 2 ... 'Z' -> 26Given a non-empty string containing only digits, deter....

文章 2023-05-22 来自:开发者社区

Python 刷Leetcode题库,顺带学英语单词(28)

Word SearchGiven a 2D board and a word, find if the word exists in the grid.   [#79]The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those horiz....

文章 2023-05-22 来自:开发者社区

Python 刷Leetcode题库,顺带学英语单词(27)

Largest Rectangle in HistogramGiven n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.   [#84]....

Python 刷Leetcode题库,顺带学英语单词(27)
文章 2023-05-22 来自:开发者社区

Python 刷Leetcode题库,顺带学英语单词(26)

Remove Duplicates from Sorted ListGiven a sorted linked list, delete all duplicates such that each element appear only once.   [#83]Examples: Input: 1->1->2 Output: 1->2 Input: 1->1-....

文章 2023-05-22 来自:开发者社区

Python 刷Leetcode题库,顺带学英语单词(25)

Search in Rotated Sorted ArraySuppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.   [#33](i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2] ).You are ....

文章 2023-05-22 来自:开发者社区

Python 刷Leetcode题库,顺带学英语单词(24)

SubsetsGiven a set of distinct integers, nums, return all possible subsets (the power set).   [#78]Note: The solution set must not contain duplicate subsets.Example: Input: nums = [1,2,3] Output....

本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。

算法编程

开发者社区在线编程频道官方技术圈。包含算法资源更新,周赛动态,每日一题互动。

+关注
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等