- 博客(5)
- 资源 (3)
- 收藏
- 关注
原创 Leetcode217——Contains Duplicate
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every elemen
2015-05-26 00:45:49 3322 5
原创 LeetCode203——Remove Linked List Elements
Remove all elements from a linked list of integers that have value val.Example Given: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6 Return: 1 --> 2 --> 3 --> 4 --> 5Credits: Special thanks to
2015-05-24 22:51:41 1641
原创 LeetCode204——Count Primes
Description:Count the number of prime numbers less than a non-negative number, n.Credits: Special thanks to @mithmatt for adding this problem and creating all test cases.实现:int countPrim
2015-05-24 22:34:39 1548
原创 Leetcode205——Isomorphic Strings
Given two strings s and t, determine if they are isomorphic.Two strings are isomorphic if the characters in s can be replaced to get t.All occurrences of a character must be replaced with anot
2015-05-24 17:50:04 1154
原创 最佳实战:用Cocos2d-x3.x和C++11编写2048游戏以及游戏AI(全民2048 Android版上线啦)
话说,年仅19岁的意大利人Gabriele Cirulli于2014年3月完成并发布在github上,游戏设计来自于《1024》,而《1024》灵感来源于《Threes!》的移动端游戏。然而游戏飙升的人气超乎他的想象,人们忘记了Flappy Bird, 2048成了 网络上“最上瘾的东西”。我是完全为了熟悉Cocos2d-x3.x版本,才写这个游戏的。这个游戏的玩法如下:该游戏使用
2015-05-05 00:46:38 17190 18
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人