杨帆博客

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


  • 首页

  • 标签

  • 归档

  • 搜索

Time-to-Buy-and-Sell-Stock

发表于 2018-03-14 | 更新于: 2018-08-22

题目地址

LeetCode#121 Best Time to Buy and Sell Stock

题目描述

  Say you have an array for which the ith element is the price of a given stock on day i.

  If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stock), design an algorithm to find the maximum profit.

阅读全文 »

【OpenGL】24-抗锯齿

发表于 2018-03-13 | 更新于: 2018-08-22

参考教程

【中文版】抗锯齿

【英文版】Anti Aliasing

学习记录

  在讨论抗锯齿之前,我们需要知道什么是锯齿。我们的屏幕显示效果其实是由一个个像素点显示而成的,就是相当于一个个小方格堆砌而成,而当我们在屏幕上显示一条线的时候,他可能是比较平滑的,因为可以沿着小方格的边缘着色,但是若是斜线呢。

阅读全文 »

Longest-Palindromic-Subsequence

发表于 2018-03-13 | 更新于: 2018-08-22

题目地址

LeetCode#516 Longest Palindromic Subsequence

题目描述

  Given a string s, find the longest palindromic subsequence’s length in s. You may assume that the maximum length of s is 1000.

阅读全文 »

【OpenGL】23-实例化

发表于 2018-03-13 | 更新于: 2018-08-22

参考教程

【中文版】实例化

【英文版】Instancing

学习记录

  在这篇文章中,我们来介绍一个用于绘制大量模型物体的技术:实例化(Instancing)

阅读全文 »

【OpenGL】Breakout-3-实现我们的基础类

发表于 2018-03-13 | 更新于: 2018-08-22

  上一篇文章中,我们为游戏搭建了基本框架,创建了几个必要类,但是也仅仅是创建了他们而没有实现。现在我们将开始为他们编码,实现其内容。这将是出现大量代码的一篇文章。

阅读全文 »
1…252627…46
KsGin

KsGin

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

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