LeetCode day14 2014/11/2

36. Set Matrix Zeros

Constant space solution

use first row and first col as flag space which save the zeros row & col info.   Store the first row & col origin info first then restore it.

38. Valid Binay Search Tree

Integer.MAX_VALUE

40. Valid Palidrome

int low = '0', 把数字转换成ASCII code

 

posted on 2014-11-03 10:09  SuperBo  阅读(79)  评论(0编辑  收藏  举报