摘要: 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 阅读(125) 评论(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 阅读(445) 评论(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 阅读(415) 评论(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 阅读(224) 评论(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 阅读(5924) 评论(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 阅读(2544) 评论(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 阅读(242) 评论(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 阅读(1474) 评论(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 阅读(214) 评论(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 阅读(194) 评论(0) 推荐(0) 编辑