摘要:
B站av11459203的一系列视频,跳过了基础篇直接进入进阶,从此难度开始加大。这里做出一些笔记分享一下。 我是1.25速度看的。。对应分P 37-38 构造函数的作用 将对象初始化为一个特定的初始状态。 构造函数的形式 函数名与类名相同 不能定义返回值类型,也不能有return语句 有形式参数, 阅读全文
摘要:
We have two types of tiles: a 2x1 domino shape, and an "L" tromino shape. These shapes may be rotated. Given N, how many ways are there to tile a 2 x 阅读全文
摘要:
S and T are strings composed of lowercase letters. In S, no letter occurs more than once. S was sorted in some custom order previously. We want to per 阅读全文
摘要:
You are playing a simplified Pacman game. You start at the point (0, 0), and your destination is(target[0], target[1]). There are several ghosts on th 阅读全文
摘要:
X is a good number if after rotating each digit individually by 180 degrees, we get a valid number that is different from X. A number is valid if each 阅读全文