是说自然数序列看成一个长字符串,问我们第N位上的数字是什么。那么这道题的关键就是要找出第N位所在的数字,然后可以把数字转为字符串,这样直接可以访问任何一位。那么我们首先来分析自然数序列和其位数的关系,前九个数都是1位的,然后10到99总共90个数字都是两位的,100到999这900个数都是三位的,那 ...
分类:
其他好文 时间:
2018-06-10 12:04:38
阅读次数:
180
描述Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2.Aer remo ...
分类:
编程语言 时间:
2018-06-09 22:04:32
阅读次数:
170
1 、 用 两 种 方 式 根 据 部 门 号 从 高 到 低 , 工 资 从 低 到 高 列 出 每 个 员 工 的 信 息 。 employee: eid,ename,salary,deptid; select * from employeeorder by deptid desc,salary ...
分类:
数据库 时间:
2018-06-07 14:28:35
阅读次数:
347
表1: Person 表2: Address 编写一个 SQL 查询,满足条件:无论 person 是否有地址信息,都需要基于上述两表提供 person 的以下信息: 176、 编写一个 SQL 查询,获取 Employee 表中第二高的薪水(Salary) 。 例如上述 Employee 表,SQ ...
分类:
其他好文 时间:
2018-06-07 00:34:47
阅读次数:
262
【题目】中文版 英文版 给定一个链表,删除链表的倒数第 n 个节点,并且返回链表的头结点。 ...
分类:
其他好文 时间:
2018-06-05 18:44:23
阅读次数:
176
tomcat日志级别有以下几种:LoglevelDescriptionSEVERE(highest)?CapturesexceptionandErrorWARNING?WarningmessagesINFO?Informationalmessage,relatedtotheserveractivityCONFIG?ConfigurationmessageFINE?Detailedactivityo
分类:
其他好文 时间:
2018-06-05 16:24:07
阅读次数:
461
转自:http://www.zhangxinxu.com/wordpress/2011/06/css3%E9%80%89%E6%8B%A9%E5%99%A8nth-child%E5%92%8Cnth-of-type%E4%B9%8B%E9%97%B4%E7%9A%84%E5%B7%AE%E5%BC% ...
分类:
Web程序 时间:
2018-06-04 14:38:45
阅读次数:
189
The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elev ...
分类:
其他好文 时间:
2018-06-04 00:51:14
阅读次数:
166
一、用户与程序交互 python3 (input)=python2 (raw_input) 在python3中,用户input的内容都是字符串(str)类型 二、基本的数据类型 1.整型-int 定义:age = 30 记录年龄、银行卡号 2.浮点型-float 定义: salary = 3000. ...
分类:
其他好文 时间:
2018-05-28 22:47:56
阅读次数:
218
package learning;import java.util.*;import java.io.*;public class Employee{ String name; int age; String designation; double salary; public Employee(S ...
分类:
编程语言 时间:
2018-05-27 17:38:17
阅读次数:
676