摘要: A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).The robot can only move either down or right at any po... 阅读全文
posted @ 2014-05-10 21:02 linyx 阅读(147) 评论(0) 推荐(0) 编辑
摘要: Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega... 阅读全文
posted @ 2014-05-10 20:25 linyx 阅读(140) 评论(0) 推荐(0) 编辑
摘要: ktv如果唱这首应该很爽,慢慢学。红(くれない) 歌手:X JAPAN作词:YOSHIKI作曲:YOSHIKII could not look back you'd gone away from meI felt my heart ache I was afraid of following y... 阅读全文
posted @ 2014-05-10 16:25 linyx 阅读(312) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened t... 阅读全文
posted @ 2014-05-10 15:55 linyx 阅读(139) 评论(0) 推荐(0) 编辑
摘要: Given a string S and a string T, count the number of distinct subsequences of T in S.A subsequence of a string is a new string which is formed from th... 阅读全文
posted @ 2014-05-10 15:03 linyx 阅读(158) 评论(0) 推荐(0) 编辑
摘要: Divide two integers without using multiplication, division and mod operator.这道题要AC也不容易,许多基础概念不懂。最后看了答案,自己再做也很难AC。还是要记住一些关键点才行:1. 负数的补码等于反码+1.所以负数取绝对值就... 阅读全文
posted @ 2014-05-10 02:17 linyx 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 32位平台char 1个字节8位short 2个字节16位int 4个字节32位long 4个字节long long 8个字节指针 4个字节64位平台char 1个字节short 2个字节int 4个字节long 8个字节long long 8个字节指针 8个字节范围char -128 ~ +127... 阅读全文
posted @ 2014-05-10 00:26 linyx 阅读(3423) 评论(0) 推荐(0) 编辑