#递归和动态规划
该标签下的全部文章。
Palindrome Partitioning II
Given a string s, partition s such that every substring of the partition is a palindrome.
Product of Array Except Self
Given an array of integers, write a function to replace each element with the product of all elements other th
Recursive Multiply
Write a recursive function to multiply two numbers without using the operator (or / operator).
Regular Expression Matching
Implement regular expression matching with support for '.' and ''.
Restore IP Addresses
Given a string containing only digits, restore it by returning all possible valid IP address combinations.
Subarray Sum to K
Given an nonnegative integer array, find a subarray where the sum of numbers is k.
Continuous Subarray Sum
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.