摘要:
Single Number I Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linea 阅读全文
posted @ 2015-06-16 19:57
linqiaozhou
阅读(244)
评论(0)
推荐(0)
摘要:
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. Did you use extra space?A straight forward solution usin 阅读全文
posted @ 2015-06-16 16:49
linqiaozhou
阅读(440)
评论(0)
推荐(0)
摘要:
A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1], find a peak element and return its inde 阅读全文
posted @ 2015-06-16 11:24
linqiaozhou
阅读(456)
评论(0)
推荐(0)
摘要:
You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise). Follow up: Could you do this in-place? 这题有三种思路: 思路 阅读全文
posted @ 2015-06-16 09:27
linqiaozhou
阅读(411)
评论(0)
推荐(0)

浙公网安备 33010602011771号