原创 [LeetCode]Numbers With Same Consecutive Differences@Golang

Numbers With Same Consecutive Differences Return all non-negative integers of length N such that the absolute diffe

原创 [LeetCode]Minimum Falling Path Sum@Golang

Minimum Falling Path Sum Given a square array of integers A, we want the minimum sum of a falling path through A. A

原创 [LeetCode]Longest Turbulent Subarray@Golang

Longest Turbulent Subarray A subarray A[i], A[i+1], …, A[j] of A is said to be turbulent if and only if: For i <= k

原创 [LeetCode]Partition to K Equal Sum Subsets@Python

Partition to K Equal Sum Subsets Given an array of integers nums and a positive integer k, find whether it’s possib

原创 [LeetCode]Knight Probability in Chessboard@Python

Knight Probability in Chessboard On an NxN chessboard, a knight starts at the r-th row and c-th column and attempts

原创 [LeetCode]Min Cost Climbing Stairs@Python

Min Cost Climbing Stairs On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed). Onc

原创 [LeetCode]Largest Sum of Averages@Python

Largest Sum of Averages We partition a row of numbers A into at most K adjacent (non-empty) groups, then our score

原创 [LeetCode]Minimum Swaps To Make Sequences Increasing@Python

Minimum Swaps To Make Sequences Increasing We have two integer sequences A and B of the same non-zero length. We ar

原创 [LeetCode]Minimum ASCII Delete Sum for Two Strings@Python

Minimum ASCII Delete Sum for Two Strings Given two strings s1, s2, find the lowest ASCII sum of deleted characters

原创 [LeetCode]Maximum Length of Repeated Subarray@Python

Maximum Length of Repeated Subarray Given two integer arrays A and B, return the maximum length of an subarray that

原创 [LeetCode]Number of Longest Increasing Subsequence@Python

Number of Longest Increasing Subsequence Given an unsorted array of integers, find the number of longest increasin

原创 [LeetCode]2 Keys Keyboard@Python

2 Keys Keyboard Initially on a notepad only one character ‘A’ is present. You can perform two operations on this n

原创 [LeetCode]Palindromic Substrings@Python

Palindromic Substrings Given a string, your task is to count how many palindromic substrings in this string. The s

原创 [Leetcode]Maximum Length of Pair Chain@Python

Maximum Length of Pair Chain You are given n pairs of numbers. In every pair, the first number is always smaller t

原创 [LeetCode]Longest Palindromic Subsequence@Python

Longest Palindromic Subsequence Given a string s, find the longest palindromic subsequence’s length in s. You may a