解答本题时不能想当然地去找字符串内部对称的位置,而是多考虑几种情况分析解法,尤其是示例输入特别简单且特别有迷惑性的时候,更要小心谨慎。 题目描
本题是一道线段树的经典例题,主要考察线段树的延迟操作,难度不高,但解题思路要清晰,数据结构写法要熟练 题目描述 题目大意假设有 n 个数排成一列,且
本题是一道稍显困难的动态规划问题,需要仔细观察题目内容,转化为已经解答过的题目。 题目描述 题目大意假设有一个二维 n * n 的矩阵,矩阵的内容为不同
本题的基本解法是使用深度优先搜索算法,仍然是入门难度,但比其他的问题稍稍困难一点的地方在于需要针对性地剪枝,非常经典,值得深入研究。 题目描述
本题难度不大,为算法入门难度,但是是一道很经典的解同余方程组的问题。需要注意的是,本题暴力解法会超时,需要额外了解数论中的“孙子定理”才能设