03 2018 档案

摘要:这是网上的练习,花了点时间用MySQL做了一下。 初始化数据库: 题目与解答: 阅读全文
posted @ 2018-03-29 16:58 SleepyDot 阅读(1037) 评论(0) 推荐(0)
摘要:Given a string, find the length of the longest substring without repeating characters. Examples: Given "abcabcbb", the answer is "abc", which the leng 阅读全文
posted @ 2018-03-28 00:00 SleepyDot 阅读(78) 评论(0) 推荐(0)
摘要:You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai 阅读全文
posted @ 2018-03-27 23:57 SleepyDot 阅读(82) 评论(0) 推荐(0)
摘要:Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex 阅读全文
posted @ 2018-03-27 00:13 SleepyDot 阅读(127) 评论(0) 推荐(0)
摘要:将以以下形式记录常用的类信息: 1、继承关系 2、具体的底层实现 3、提供的初始化方法和方法 一、Map接口 二、Collection接口 public interface Collection<E> { int size(); boolean add(E element); Iterator<E> 阅读全文
posted @ 2018-03-25 23:34 SleepyDot 阅读(134) 评论(0) 推荐(0)
摘要:单例应该是最简单的设计模式,下面是几种不同的写法: 1.线程安全的懒汉 2.饿汉模式 3.枚举 4.静态内部类 5.双重校验锁 阅读全文
posted @ 2018-03-24 20:19 SleepyDot 阅读(101) 评论(0) 推荐(0)
摘要:问题描述:碰到这个问题是在使用MySQL显示排名时候引出来的,在执行SQL时的执行顺序问题。 a.显示排名,相同年龄不同排名 b.显示排名,相同年龄排名相同,相同年龄后的排名按照排名递增 c.相同年龄后的年龄排名按照之前排名总个数递增。 1 SELECT pid, name, age, rank F 阅读全文
posted @ 2018-03-12 23:47 SleepyDot 阅读(221) 评论(0) 推荐(0)