原创 LeetCode #943 Find the Shortest Superstring 最短超級串 943 Find the Shortest Superstring 最短超級串

943 Find the Shortest Superstring 最短超級串 Description: Given an array of strings words, return the smallest string that co

原创 LeetCode #936 Stamping The Sequence 戳印序列 936 Stamping The Sequence 戳印序列

936 Stamping The Sequence 戳印序列 Description: You are given two strings stamp and target. Initially, there is a string s o

原创 LeetCode #939 Minimum Area Rectangle 最小面積矩形 936 Stamping The Sequence 戳印序列

936 Stamping The Sequence 戳印序列 Description: You are given an array of points in the X-Y plane points where points[i] = [

原创 LeetCode #940 Distinct Subsequences II 不同的子序列 II 940 Distinct Subsequences II 不同的子序列 II

940 Distinct Subsequences II 不同的子序列 II Description: Given a string s, return the number of distinct non-empty subsequenc

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