- 博客(24)
- 资源 (2)
- 收藏
- 关注
原创 Algorithm-week17
Week17 Problem--8.19 A kite is a graph on an even number of vertices, say 2n, in which n of the vertices form a clique and the remaining n vertices are connected in a "tail" that consists of a path
2018-01-03 10:50:12
232
原创 Algorithm-week16
Week16 Problem--Medium--392. Is Subsequence Given a string s and a string t, check if s is subsequence of t. You may assume that there is only lower case English letters in both s and t. t is
2017-12-07 21:18:32
215
原创 Algorithm-week15
Week14 Problem--Medium--646. Maximum Length of Pair Chain You are given n pairs of numbers. In every pair, the first number is always smaller than the second number. Now, we define a pair (c,
2017-12-07 20:37:50
241
原创 Algorithm-week14
Week14 Problem--Medium--647. Palindromic Substrings Given a string, your task is to count how many palindromic substrings in this string. The substrings with different start indexes or end in
2017-12-06 20:54:39
254
原创 Algorithm-week13
Week13 Problem--Medium--673. Number of Longest Increasing Subsequence Given an unsorted array of integers, find the number of longest increasing subsequence. Example 1: Input: [1,3,5,4,7] Ou
2017-11-30 00:12:08
175
原创 Algorithm-week12
Week12 Problem--Medium--714. Best Time To Buy and Sell Stock with Transaction Fee Your are given an array of integers prices, for which the i-th element is the price of a given stock on day i;
2017-11-26 21:43:27
209
原创 Algorithm-week11
Week11 Problem--Medium--718. Maximum Length of Repeated Subarray Given two integer arrays A and B, return the maximum length of an subarray that appears in both arrays. Example 1: Input: A
2017-11-25 11:27:22
222
原创 Algorithm-week10
Week10 Problem--Medium--413. Arithmetic Slices A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is t
2017-10-28 21:36:08
183
原创 Algorithm-week9
Week9 Problem--Medium--338. Counting Bits Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and r
2017-10-28 11:48:23
212
原创 Algorithm-week8
Week8 Program--Medium--712.Minimum ASCII Delete Sum for Two Strings Given two strings s1, s2, find the lowest ASCII sum of deleted characters to make two strings equal. Example 1: Input:
2017-10-27 15:10:20
239
原创 Algorithm-week7
Week7 Program--Medium--537.Complex Number Multiplication Given two strings representing two complex number. You need to return a string representing their multiplication. Note i2 = -1 according
2017-10-22 21:17:28
291
原创 Algorithm-week6
Week6 Program--Medium--419. Battleships in a Board Given an 2D board, count how many battleships are in it. The battleships are represented with 'X's, empty slots are represented with '.'s. Yo
2017-10-09 13:09:56
284
原创 Algorithm-week5
Week5 Program--Medium--611. Valid Triangle Number Given an array consists of non-negative integers, your task is to count the number of triplets chosen from the array that can make triangles if
2017-10-08 22:51:21
261
原创 Algorithm-week4
Week3 Program--Medium--399. Evaluate Division Equations are given in the format A / B = k, where A and B are variables represented as strings, and k is a real number (floating point number). G
2017-09-29 20:52:04
289
原创 Algorithm-week3
Week3 Program--Medium Design a data structure that supports the following two operations: void addWord(word) bool search(word) search(word) can search a literal word or a regular expression
2017-09-20 14:10:07
336
原创 Algorithm-week2
Week2 Program--Medium Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only nodes with keys
2017-09-13 12:14:32
239
原创 Unity3DGame学习笔记(7):DOTween
实验任务: 这次我们要实现对一个动画插件Dotween的仿写。 它在 Specific settings 中 transform.DoMove 返回 Tween 对象,而我们要实现该对象,实现对动作的持续管理。在仿写前,让我们先了解一下什么是Dotween。Dotween是一款unity插值动画插件,unity里面做插值动画的插件有许多,比较常见的有itween、hotween、dotween。
2017-05-05 16:19:17
941
原创 Unity3DGame学习笔记(6):粒子系统
实验任务: 这次我们需要参考玩野的光环效果并用unity来实现它:http://i-remember.fr/en 目标效果:
2017-05-01 20:11:20
527
原创 Unity3DGame学习笔记(5):飞碟修改
实验要求: 由于我的原版作业实现运动是用物理运动,所以这次我需要实现运动学运动。 修改说明: 1.增添了接口IActionManager,用于统一调用物理运动和运动学运动。 2.对于物理运动,我增添了PhysicsActionManager来实现物理运动的细节。 3.对于运动学运动,根据课程ActionManager的框架,增添了CCActionManager,SSAction和
2017-04-03 16:53:49
443
原创 Unity3DGame学习笔记(4):射箭游戏
打靶游戏要求: 1.靶对象为5环,按环计分; 2.箭对象,射中后要插在靶上; 3.游戏仅一轮,无限trials; 4.增强要求:添加一个风向个强度标志,提高难度; 代码结构:
2017-03-31 17:36:14
1453
原创 Unity3DGame学习笔记(3):爆炸效果
AddExplosionForce函数说明: 在Unity脚本手册中,Rigidbody组件有一个AddExplosionForce方法,能够对一个模拟爆炸效果的刚体施加力量。爆炸被模拟为世界坐标中具有一定中心位置和半径的球体。通常情况下,球体意外的任何物体都不受爆炸的影响,力与中心距离成正比。如果半径设为0,那么将施加全部力,而不管中心距离刚体有多远。下面我将通过一个例子来演示一下这个函数。
2017-03-30 17:27:04
4239
原创 Unity3DGame学习笔记(2)
实验要求: 编程实践,请写步骤,贴代码并解释: 写个用鼠标打飞碟的游戏。 游戏要分多个 round , 飞碟数量每个 round 都是 n 个,但色彩,大小;发射位置,速度,角度,每次发射数量可以变化。 游戏过程中,仅能创建 n 个飞碟, 且不容许初始化阶段生成任何飞碟。 飞碟线路计算请使用 mathf 类。 向下加速度 a 是常数。 飞碟被用户击中,则回收。并按你
2017-03-24 16:11:41
357
原创 Unity3DGame学习笔记(1)
实验要求: 写一篇短文,描述以下游戏需求的实现。请写步骤,贴代码并解释: · 实现点击效果。 o 用 Plane 或其他物体做地面, tag 为“Finish” o 点击地面后,出现一个圆形攻击标记,两秒后自动消失。注意:该攻击标记不能挡住点击。(Primitive Objects / Cylinder) o 请使用一个简单工厂创建、管理
2017-03-22 12:00:48
422
编译原理(龙书)中文第二版 pdf
2017-09-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅