杨帆博客

你想开发游戏还是改变世界?


  • 首页

  • 标签

  • 归档

  • 搜索

为hexo博客系统添加基于github-issue的gitalk评论系统

发表于 2018-02-11 | 更新于: 2018-08-22

  由于之前使用的gitment评论系统出现了问题,需要进行一些修改。然后修改的时候想了想,gitment好久没更新了,索性直接换掉用另一个gitalk算了。而gitalk的配置在网上倒是有一大把,但是都是基于NexT主题进行的修改,没有找到yilia主题对应的方案,只能自己折腾,幸好最后弄出来了。

阅读全文 »

Flatten-Nested-List-Iterator

发表于 2018-02-09 | 更新于: 2018-08-22

题目地址

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

发表于 2018-02-07 | 更新于: 2018-08-22

题目地址

LeetCode#319 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

发表于 2018-02-04 | 更新于: 2018-08-22

题目地址

LeetCode#740 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

发表于 2018-02-04 | 更新于: 2018-08-22

题目地址

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'.

阅读全文 »
1…343536…46
KsGin

KsGin

游戏程序员/计算机图形学/Unity/西山居搬砖

226 日志
16 标签
GitHub E-Mail Google Twitter
© 2018 KsGin @ 2018
0%