摘要:
Knights in Chessboard Given an m x n chessboard where you want to place chess knights. You have to find the number of maximum knights that can be plac 阅读全文
摘要:
题目链接: F - Strivore 题意: 求出在一个字符串s中插入n个小写字母,有多少不同的结果。 思路: 在字符串 s 中插入 n 个小写字母,就相当于在 n+s.length 个格子里面填入小写字母,要求其存在为 s 的子序列(不一定要连续)。 先确定 s 第一个字母所在的位置,假设在位置 阅读全文