原创 LeetCode #916 Word Subsets 單詞子集 916 Word Subsets 單詞子集

916 Word Subsets 單詞子集 Description: You are given two string arrays words1 and words2. A string b is a subset of string a

原创 LeetCode #913 Cat and Mouse 貓和老鼠 913 Cat and Mouse 貓和老鼠

913 Cat and Mouse 貓和老鼠 Description: A game on an undirected graph is played by two players, Mouse and Cat, who alternate

原创 LeetCode #912 Sort an Array 排序數組 912 Sort an Array 排序數組

912 Sort an Array 排序數組 Description: Given an array of integers nums, sort the array in ascending order. Example: Example

原创 LeetCode #911 Online Election 在線選舉 911 Online Election 在線選舉

911 Online Election 在線選舉 Description: You are given two integer arrays persons and times. In an election, the ith vote w

原创 LeetCode #910 Smallest Range II 最小差值 II 910 Smallest Range II 最小差值 II

910 Smallest Range II 最小差值 II Description: You are given an integer array nums and an integer k. For each index i where

原创 LeetCode #909 Snakes and Ladders 蛇梯棋 909 Snakes and Ladders 蛇梯棋

909 Snakes and Ladders 蛇梯棋 Description: You are given an n x n integer matrix board where the cells are labeled from 1 t

原创 LeetCode #907 Sum of Subarray Minimums 子數組的最小值之和 907 Sum of Subarray Minimums 子數組的最小值之和

907 Sum of Subarray Minimums 子數組的最小值之和 Description: Given an array of integers arr, find the sum of min(b), where b rang

原创 LeetCode #906 Super Palindromes 超級迴文數 906 Super Palindromes 超級迴文數

906 Super Palindromes 超級迴文數 Description: Let's say a positive integer is a super-palindrome if it is a palindrome, and i

原创 LeetCode #904 Fruit Into Baskets 水果成籃 904 Fruit Into Baskets 水果成籃

904 Fruit Into Baskets 水果成籃 Description: You are visiting a farm that has a single row of fruit trees arranged from left

原创 2021-11-06 901 Online Stock Span 股票價格跨度

901 Online Stock Span 股票價格跨度 Description: Design an algorithm that collects daily price quotes for some stock and return

原创 2021-11-05 901 Online Stock Span 股票價格跨度

901 Online Stock Span 股票價格跨度 Description: Design an algorithm that collects daily price quotes for some stock and return

原创 LeetCode #901 Online Stock Span 股票價格跨度 901 Online Stock Span 股票價格跨度

901 Online Stock Span 股票價格跨度 Description: Design an algorithm that collects daily price quotes for some stock and return

原创 LeetCode #899 Orderly Queue 有序隊列 899 Orderly Queue 有序隊列

899 Orderly Queue 有序隊列 Description: You are given a string s and an integer k. You can choose one of the first k letters

原创 LeetCode #900 RLE Iterator RLE 迭代器 900 RLE Iterator RLE 迭代器

900 RLE Iterator RLE 迭代器 Description: We can use run-length encoding (i.e., RLE) to encode a sequence of integers. In a

原创 LeetCode #898 Bitwise ORs of Subarrays 子數組按位或操作 898 Bitwise ORs of Subarrays 子數組按位或操作

898 Bitwise ORs of Subarrays 子數組按位或操作 Description: We have an array arr of non-negative integers. For every (contiguous)