11 2017 档案

摘要:Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest l 阅读全文
posted @ 2017-11-30 19:16 zeroingToOne 阅读(150) 评论(0) 推荐(0) 编辑
摘要:Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root). For 阅读全文
posted @ 2017-11-28 21:12 zeroingToOne 阅读(138) 评论(0) 推荐(0) 编辑
摘要:参考资料:java核心技术 卷II 为中断套接字操作,可使用java.nio包提供的SocketChannel类。可以使用如下方式打开SocketChannel: java实现如下: 执行程序,点击Blocking,在第一批的10个数字执行过程中,点击cancel,仍会继续输完10个数字,Inter 阅读全文
posted @ 2017-11-27 22:41 zeroingToOne 阅读(658) 评论(0) 推荐(0) 编辑
摘要:参考资料:Java核心技术 卷II 1. 使用Telent工具连接到服务器 打开Telnet:电脑右键,选择属性->控制面板主页->程序->打开或关闭Windows功能,在弹出的窗口中选择Telnet客户端。 cmd打开命令行窗口, 方法一:输入: 方法二: 首先在命令窗中输入:telnet,再在弹 阅读全文
posted @ 2017-11-27 21:30 zeroingToOne 阅读(265) 评论(0) 推荐(0) 编辑
摘要:The count-and-say sequence is the sequence of integers with the first five terms as following: 1 is read off as "one 1" or 11.11 is read off as "two 1 阅读全文
posted @ 2017-11-17 21:09 zeroingToOne 阅读(126) 评论(0) 推荐(0) 编辑
摘要:Give a string s, count the number of non-empty (contiguous) substrings that have the same number of 0's and 1's, and all the 0's and all the 1's in th 阅读全文
posted @ 2017-11-17 16:44 zeroingToOne 阅读(447) 评论(0) 推荐(0) 编辑
摘要:Given two strings A and B, find the minimum number of times A has to be repeated such that B is a substring of it. If no such solution, return -1. For 阅读全文
posted @ 2017-11-17 10:52 zeroingToOne 阅读(416) 评论(0) 推荐(0) 编辑
摘要:Initially, there is a Robot at position (0, 0). Given a sequence of its moves, judge if this robot makes a circle, which means it moves back to the or 阅读全文
posted @ 2017-11-16 10:58 zeroingToOne 阅读(225) 评论(0) 推荐(0) 编辑
摘要:参考:http://latex.org/forum/viewtopic.php?t=11123 修改elsarticle.cls文件。 我的CTeX装在c盘中,elsarticle.cls文件路径为:C:\CTEX\MiKTeX\tex\latex\elsarticle 修改elsarticle.c 阅读全文
posted @ 2017-11-13 21:13 zeroingToOne 阅读(6212) 评论(1) 推荐(1) 编辑
摘要:参考:http://www.newsmth.net/nForum/#!article/TeX/316697?au=ericfire 如图:使用elsarticle模板修改PDF格式,去掉摘要前后的横线 修改elsarticle.cls文件。 我的CTeX装在c盘中,elsarticle.cls文件路 阅读全文
posted @ 2017-11-13 21:06 zeroingToOne 阅读(2630) 评论(0) 推荐(0) 编辑
摘要:Write a function that takes a string as input and reverse only the vowels of a string. Example 1:Given s = "hello", return "holle". Example 2:Given s 阅读全文
posted @ 2017-11-11 20:01 zeroingToOne 阅读(245) 评论(0) 推荐(0) 编辑
摘要:Eclipse启动时出现错误: A Java Runtime Environment (JRE) or Java Development Kit(JDK) must be available in order to run Eclipse. No Java virtualmachine was fo 阅读全文
posted @ 2017-11-08 22:29 zeroingToOne 阅读(1500) 评论(0) 推荐(0) 编辑
摘要:Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 关于罗马数字介绍(以下内容摘自维基百科): 罗马数字共有7个,即Ⅰ(1)、Ⅴ(5)、 阅读全文
posted @ 2017-11-08 22:27 zeroingToOne 阅读(216) 评论(0) 推荐(0) 编辑
摘要:Given numRows, generate the first numRows of Pascal's triangle. For example, given numRows = 5,Return 阅读全文
posted @ 2017-11-07 20:18 zeroingToOne 阅读(195) 评论(0) 推荐(0) 编辑
摘要:We have two special characters. The first character can be represented by one bit 0. The second character can be represented by two bits (10 or 11). N 阅读全文
posted @ 2017-11-07 20:00 zeroingToOne 阅读(184) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示