- 博客(4)
- 收藏
- 关注
转载 Unity学习_实现人物跟随地板移动
//1、 利用层级关系,触碰时,方块是角色的父级,离开解除关系void OnCollisionStay(Collision other){other.gameObject.transform.parent = transform;}void OnCollisionExit(Collision other){other.gameObject.transform.parent = nu...
2019-05-15 21:51:38 3206
原创 Leetcode 题目3-- 重编strStr
刚开始让我编这个程序我是拒绝的。翻来覆去,想搞两个不同步执行的,字符串内的指针。结果执行的时候,各种奇奇怪怪的结果。最后忍不住看了一眼参考代码,就被洗脑了。真滴是非常简洁,值得借鉴。原题目:Question:Implement strstr(). Returns the index of the first occurrence of needle in haystack, or –1...
2019-01-20 22:05:16 123
原创 Leetcode题目_2
题目如下:Given a string, determine if it is a palindrome, considering only alphanumeric charactersand ignoring cases.For example,"A man, a plan, a canal: Panama" is a palindrome."race a car" is ...
2018-12-29 16:09:14 235
原创 Leetcode 题目_1
题目_1TWO SUMGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to th...
2018-12-25 20:21:43 143
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人