随笔分类 - 数学
摘要:problem: https://leetcode.com/problems/robot-bounded-in-circle/ As the hint mentions, we can keep track of the robot's position, when it finally retur
阅读全文
摘要:problem:https://leetcode.com/problems/rabbits-in-forest/ 值为n的可以和其它n + 1个值为n的成组,统计每个值出现的次数,看它们可以组成多少组相同颜色的兔子,然后乘以组中兔子个数。
阅读全文
摘要:problem:https://leetcode.com/problems/string-to-integer-atoi/ 这题题号挺前的,但一直没做。今天提了5次才过,终于知道这道题为什么通过率这么低了。主要就是if/else练习,尤其是完全没看题后会挂在很多地方。
阅读全文
摘要:problem:https://leetcode.com/problems/spiral-matrix-iii/ 这道题挺简单的,只需要模拟一下题意就可以了。不断地增加步数和改变方向,直到已经读取到矩阵的所有数据。
阅读全文
摘要:problem:https://leetcode.com/problems/maximum-of-absolute-value-expression/ 这道题让我想到了leetcode上另一个题目:https://leetcode.com/problems/best-sightseeing-pair
阅读全文

浙公网安备 33010602011771号