#递归和动态规划
该标签下的全部文章。
Different Ways to Add Parentheses
Given a string of numbers and operators, return all possible results from computing all the different possible
Dungeon Game
The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon.
Expression Add Operators
Given a string that contains only digits 0-9 and a target value, return all possibilities to add binary operat
Generate Parentheses
Given n pairs of parentheses, generate all valid combinations of parentheses. E.g.
House Robbery II
After robbing those houses on that street, the thief has found himself a new place for his thievery so that he
House Robbery
假设你是一个专业的窃贼,准备沿着一条街打劫房屋。每个房子都存放着特定金额的钱。你面临的唯一约束条件是:相邻的房子装着相互联系的防盗系统,且 当相邻的两个房子同一天被打劫时,该系统会自动报警。