-
06:11
(UTC +08:00)
Pinned Loading
-
LeetCode: Check If a Word Occurs As...
LeetCode: Check If a Word Occurs As a Prefix of Any Word in a Sentence 1## Check If a Word Occurs As a Prefix of Any Word in a Sentence
23Given a `sentence` that consists of some words separated by a single space, and a `searchWord`.
45You have to check if `searchWord` is a prefix of any word in `sentence`.
-
LeetCode 1. Two Sum: Given an array ...
LeetCode 1. Two Sum: Given an array of integers, return indices of the two numbers such that they add up to a specific target. 1class Solution:
2def twoSum(self, nums: List[int], target: int) -> List[int]:
3#using hash_map to store the first occurence
4hash_map = {}
5for idx,i in enumerate(nums):
-
Maximum Number of Vowels in a Substr...
Maximum Number of Vowels in a Substring of Given Length 1## Maximum Number of Vowels in a Substring of Given Length
23Given a string `s` and an integer `k`.
45Return the maximum number of vowel letters in any substring of `s` with length `k`.
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.