游戏
文章平均质量分 76
jmspan
这个作者很懒,什么都没留下…
展开
-
LeetCode 292. Nim Game(取物游戏)
原题网址:https://leetcode.com/problems/nim-game/You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 ston原创 2016-04-16 05:58:50 · 503 阅读 · 0 评论 -
LeetCode 374. Guess Number Higher or Lower
原题网址:https://leetcode.com/problems/guess-number-higher-or-lower/We are playing the Guess Game. The game is as follows:I pick a number from 1 to n. You have to guess which number I picked.Eve原创 2016-07-13 23:27:38 · 911 阅读 · 0 评论 -
LeetCode 348. Design Tic-Tac-Toe(井字棋)
原题网址:https://leetcode.com/problems/design-tic-tac-toe/Design a Tic-tac-toe game that is played between two players on a n x n grid.You may assume the following rules:A move is guaranteed原创 2016-05-18 09:30:28 · 4381 阅读 · 0 评论 -
LeetCode 353. Design Snake Game(设计贪吃蛇游戏)
原题网址:https://leetcode.com/problems/design-snake-game/Design a Snake game that is played on a device with screen size = width x height. Play the game online if you are not familiar with the gam原创 2016-06-16 02:41:06 · 4805 阅读 · 0 评论 -
LeetCode 37. Sudoku Solver(数读游戏)
原题网址:https://leetcode.com/problems/sudoku-solver/Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character '.'.You may assume that th原创 2016-05-20 10:40:25 · 408 阅读 · 0 评论 -
LeetCode 36. Valid Sudoku(数独游戏)
原题网址:https://leetcode.com/problems/valid-sudoku/Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are fil原创 2016-05-20 10:38:02 · 680 阅读 · 0 评论 -
LeetCode 299. Bulls and Cows(公牛和母牛)
原题网址:https://leetcode.com/problems/bulls-and-cows/You are playing the following Bulls and Cows game with your friend: You write down a number and ask your friend to guess what the number is. E原创 2016-04-17 00:36:08 · 392 阅读 · 0 评论 -
LeetCode 294. Flip Game II(反转游戏II)
原题网址:https://leetcode.com/problems/flip-game-ii/You are playing the following Flip Game with your friend: Given a string that contains only these two characters: + and -, you and your friend t原创 2016-04-16 09:03:16 · 1017 阅读 · 0 评论 -
LeetCode 293. Flip Game(反转游戏)
原题网址:https://leetcode.com/problems/flip-game/You are playing the following Flip Game with your friend: Given a string that contains only these two characters: + and -, you and your friend take原创 2016-04-16 06:11:22 · 1627 阅读 · 0 评论