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 filled with the character'.'.
题目解...
merge sorted array
题目描述
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:
You may assume that A has enough space to hold additional elements from B. The number ...
题目描述
A linked list is given such that each node contains an additional random pointer which could point to any node in the list or null.Return a deep copy of the list.
题目解析
其实这个题目跟剑...
single-number-ii
Given an array of integers, every element appears three times except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implemen...