原创 LeetCode #934 Shortest Bridge 最短的橋 934 Shortest Bridge 最短的橋

934 Shortest Bridge 最短的橋 Description: You are given an n x n binary matrix grid where 1 represents land and 0 represents

原创 LeetCode #935 Knight Dialer 騎士撥號器 935 Knight Dialer 騎士撥號器

935 Knight Dialer 騎士撥號器 Description: The chess knight has a unique movement, it may move two squares vertically and one

原创 LeetCode #932 Beautiful Array 漂亮數組 932 Beautiful Array 漂亮數組

932 Beautiful Array 漂亮數組 Description: An array nums of length n is beautiful if: nums is a permutation of the integers i

原创 LeetCode #931 Minimum Falling Path Sum 下降路徑最小和 930 Binary Subarrays With Sum 和相同的二元子數組

930 Binary Subarrays With Sum 和相同的二元子數組 Description: Given an n x n array of integers matrix, return the minimum sum of

原创 LeetCode #930 Binary Subarrays With Sum 和相同的二元子數組 930 Binary Subarrays With Sum 和相同的二元子數組

930 Binary Subarrays With Sum 和相同的二元子數組 Description: Given a binary array nums and an integer goal, return the number of

原创 LeetCode #927 Three Equal Parts 三等分 927 Three Equal Parts 三等分

927 Three Equal Parts 三等分 Description: You are given an array arr which consists of only zeros and ones, divide the arra

原创 LeetCode #924 Minimize Malware Spread 儘量減少惡意軟件的傳播 924 Minimize Malware Spread 儘量減少惡意軟件的傳播

924 Minimize Malware Spread 儘量減少惡意軟件的傳播 Description: You are given a network of n nodes represented as an n x n adjacenc

原创 LeetCode #923 3Sum With Multiplicity 三數之和的多種可能 923 3Sum With Multiplicity 三數之和的多種可能

923 3Sum With Multiplicity 三數之和的多種可能 Description: Given an integer array arr, and an integer target, return the number o

原创 LeetCode #920 Number of Music Playlists 播放列表的數量 920 Number of Music Playlists 播放列表的數量

920 Number of Music Playlists 播放列表的數量 Description: Your music player contains n different songs. You want to listen to g

原创 LeetCode #919 Complete Binary Tree Inserter 完全二叉樹插入器 919 Complete Binary Tree Inserter 完全二叉樹插入器

919 Complete Binary Tree Inserter 完全二叉樹插入器 Description: A complete binary tree is a binary tree in which every level, ex

原创 LeetCode #918 Maximum Sum Circular Subarray 環形子數組的最大和 918 Maximum Sum Circular Subarray 環形子數組的最大和

918 Maximum Sum Circular Subarray 環形子數組的最大和 Description: Given a circular integer array nums of length n, return the max

原创 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