上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页
摘要: 题目描述:(链接)Given a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,... 阅读全文
posted @ 2015-11-22 16:55 skycore 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1... 阅读全文
posted @ 2015-11-22 16:41 skycore 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 题目解析:(链接)Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in t... 阅读全文
posted @ 2015-11-22 16:17 skycore 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)Given a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is ... 阅读全文
posted @ 2015-11-20 11:45 skycore 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)Given a string containing just the characters'('and')', find the length of the longest valid (well-formed) parentheses substring.For"(()", th... 阅读全文
posted @ 2015-11-17 17:54 skycore 阅读(143) 评论(0) 推荐(0) 编辑
摘要: matplotlib是python最著名的绘图库,它提供了一整套和MATLAB类似的绘图函数集。一. 快速绘图1. 使用pyplot模块绘图pyplot模块提供了快速绘制二维图表的API,例子: 1 # -*- coding: utf-8 -*- 2 """ 3 绘制简单的曲线。 4 """ 5 i... 阅读全文
posted @ 2015-11-17 16:45 skycore 阅读(360) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)Given an absolute path for a file (Unix-style), simplify it.For example,path="/home/", =>"/home"path="/a/./b/../../c/", =>"/c"click to show c... 阅读全文
posted @ 2015-11-17 14:43 skycore 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)Given two stringssandt, determine if they are isomorphic.Two strings are isomorphic if the characters inscan be replaced to gett.All occurren... 阅读全文
posted @ 2015-11-14 22:36 skycore 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 原文地址: http://www.cnblogs.com/archimedes/p/mapreduce-principle.html简单解释 MapReduce 算法一个有趣的例子你想数出一摞牌中有多少张黑桃。直观方式是一张一张检查并且数出有多少张是黑桃?MapReduce方法则是:给在座的所有玩家... 阅读全文
posted @ 2015-11-14 22:14 skycore 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 题目描述:(链接)Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.解题思路: 1 class Solution { 2 public: ... 阅读全文
posted @ 2015-11-12 18:28 skycore 阅读(162) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页