12 2017 档案

摘要:Related to question Excel Sheet Column Title Given a column title as appear in an Excel sheet, return its corresponding column number. For example: 阅读全文
posted @ 2017-12-27 21:31 zeroingToOne 阅读(162) 评论(0) 推荐(0)
摘要:Eclipse在保存代码时,总是自动换行。尤其是注释,换行后的注释读起来就很混乱。后来发现是在保存文件时设置了自动格式化代码的原因。 关闭自动格式代码设置: windows-->Preferences-->Java --> Editor-->Save Actions 去掉Format source 阅读全文
posted @ 2017-12-25 21:53 zeroingToOne 阅读(2463) 评论(0) 推荐(0)
摘要:Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space? 题意:给定一个链表,判断链表中是否存在环路。 注:不能使用额外的空间 思路:百度 阅读全文
posted @ 2017-12-18 21:02 zeroingToOne 阅读(156) 评论(0) 推荐(0)
摘要:Given a sorted linked list, delete all duplicates such that each element appear only once. For example,Given 1->1->2, return 1->2.Given 1->1->2->3->3, 阅读全文
posted @ 2017-12-17 21:37 zeroingToOne 阅读(203) 评论(0) 推荐(0)
摘要:1. Collection接口 其主要的UML类图: Collection接口继承自Iterable接口。Iterable接口中定义了Iterable方法,该方法会返回一个迭代器,用于遍历合集中的元素。Collection接口为线性表、向量、栈、队列、优先队列及集合定义了共同的操作。java集合框架 阅读全文
posted @ 2017-12-16 14:10 zeroingToOne 阅读(315) 评论(0) 推荐(0)
摘要:在学习Servlet时,运行程序时报错:Server Tomcat v7.0 Server at localhost failed to start.如图 网上查的原因主要是改web.xml配置文件,但修改后并未成功。后来才发现原因不在配置文件。 发现自己的错误在于:ClassNotFoundExc 阅读全文
posted @ 2017-12-12 10:50 zeroingToOne 阅读(1354) 评论(0) 推荐(0)
摘要:Given a Binary Search Tree and a target number, return true if there exist two elements in the BST such that their sum is equal to the given target. E 阅读全文
posted @ 2017-12-04 21:30 zeroingToOne 阅读(125) 评论(0) 推荐(0)
摘要:Given a non-empty special binary tree consisting of nodes with the non-negative value, where each node in this tree has exactly two or zero sub-node. 阅读全文
posted @ 2017-12-04 20:39 zeroingToOne 阅读(241) 评论(0) 推荐(0)
摘要:Find the sum of all left leaves in a given binary tree. Example: 阅读全文
posted @ 2017-12-02 21:41 zeroingToOne 阅读(156) 评论(0) 推荐(0)
摘要:1. 创建数据库表 create table Course( courseId char(5), subjectId char(4) not null, courseNumber integer, title varchar(50) not null, numOfCredits integer, p 阅读全文
posted @ 2017-12-01 20:22 zeroingToOne 阅读(7109) 评论(0) 推荐(0)