Category: dynamic programming
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10^n. Example: Input: …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given a string, your task is to count how many palindromic substrings in this string. The substrings with different start …
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 …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given an integer n, return the least number of perfect square numbers that sum to n. A perfect square is …
Teaching Kids Programming: Videos on Data Structures and Algorithms Given N numbers, we know the total number of permutation is N! (factorial). If every number is not in its …