Tag: dynamic programming algorithm
Given a string s consisting only of A and B, return the minimum number of letters that need to be deleted from s to get all occurrences of As …
Given a list of unique positive integers nums and a positive integer k, return the number of unique combinations that sum up to k. You may reuse numbers when …
Given a list of integers nums, return the number of contiguous arithmetic sequences of length ≥ 3. Constraints n ≤ 10,000 where n is length of nums. Example 1 …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a triangle array, return the minimum path sum from top to bottom. For each step, you may move to …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given an integer array nums, return the length of the longest strictly increasing subsequence. A subsequence is a sequence that …