由于之前使用的gitment评论系统出现了问题,需要进行一些修改。然后修改的时候想了想,gitment好久没更新了,索性直接换掉用另一个gitalk算了。而gitalk的配置在网上倒是有一大把,但是都是基于NexT主题进行的修改,没有找到yilia主题对应的方案,只能自己折腾,幸好最后弄出来了。
Flatten-Nested-List-Iterator
题目地址
LeetCode#341 Flatten Nested List Iterator
题目描述
Given a nested list of integers, implement an iterator to flatten it.
Each element is either an integer, or a list — whose elements may also be integers or other lists.
Bulb-Switcher
题目地址
题目描述
There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every third bulb (turning on if it’s off or turning off if it’s on). For the ith round, you toggle every i bulb. For the nth round, you only toggle the last bulb. Find how many bulbs are on after n rounds.
Delete-And-Earn
题目地址
题目描述
Given an array nums
of integers, you can perform operations on the array.
In each operation, you pick any nums[i]
and delete it to earn nums[i]
points. After, you must delete every element equal to nums[i] - 1
or nums[i] + 1
.
You start with 0 points. Return the maximum number of points you can earn by applying such operations.
Pyramid-Transition-Matrix
题目地址
LeetCode#756 Pyramid Transition Matrix
题目描述
We are stacking blocks to form a pyramid. Each block has a color which is a one letter string, like 'Z'
.