随笔分类 -  算法

leetcode #7 revert integer 问题
摘要:问题描述:Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321输入一个整形数字,然后输出它的反转需要注意的是,int形变量的反转有可能是超过int的限制的,比如123456789... 阅读全文
posted @ 2015-06-15 16:06 简刀 阅读(177) 评论(0) 推荐(0)
leetcode #1 twoSum问题:简单实用哈希表
摘要:因为不是计算机专业的,算法基础有点差,所以最近开始在leetcode上刷刷题补一补。#1 问题链接:twoSum问题描述:Given an array of integers, find two numbers such that they add up to a specific target n... 阅读全文
posted @ 2015-06-07 16:01 简刀 阅读(616) 评论(0) 推荐(0)