- 博客(19)
- 资源 (1)
- 收藏
- 关注
原创 LeetCode 刷题记录 39. Combination Sum
题目:Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where the candidate numbers sums to target.The same rep...
2019-08-30 23:38:28 153
原创 LeetCode 刷题记录 38. Count and Say
题目:The count-and-say sequence is the sequence of integers with the first five terms as following:1112112111112211 is read off as “one 1” or 11.11 is read off as “two 1s” or 21...
2019-08-28 20:10:13 110
原创 LeetCode 刷题记录 37. Sudoku Solver
题目:Write a program to solve a Sudoku puzzle by filling the empty cells.A sudoku solution must satisfy all of the following rules:Each of the digits 1-9 must occur exactly once in each row.Each of ...
2019-08-26 23:53:29 151
原创 LeetCode 刷题记录 36. Valid Sudoku
题目:Determine if a 9x9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules:Each row must contain the digits 1-9 without repetition.Each column must con...
2019-08-25 11:10:39 164
原创 LeetCode 刷题记录 35. Search Insert Position
题目:Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You may assume no duplicates in the array...
2019-08-23 21:37:14 116
原创 LeetCode 刷题记录 34. Find First and Last Position of Element in Sorted Array
题目:Given an array of integers nums sorted in ascending order, find the starting and ending position of a given target value.Your algorithm’s runtime complexity must be in the order of O(log n).If t...
2019-08-23 12:25:38 177
原创 LeetCode 刷题记录 33.Search in Rotated Sorted Array
题目:Suppose an array sorted in ascending order is rotated at some pivot unknown to you beforehand.(i.e., [0,1,2,4,5,6,7] might become [4,5,6,7,0,1,2]).You are given a target value to search. If foun...
2019-08-20 12:08:45 118
原创 LeetCode 刷题记录 32. Longest Valid Parentheses
Given a string containing just the characters ‘(’ and ‘)’, find the length of the longest valid (well-formed) parentheses substring.Example 1:Input: “(()”Output: 2Explanation: The longest valid pa...
2019-08-18 17:02:13 100
原创 LeetCode 刷题记录31. 31. Next Permutation
题目:Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possible, it must rearrange it as the lowest possibl...
2019-08-14 20:45:38 103
原创 LeetCode 刷题记录30. Substring with Concatenation of All Words
题目:You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a concatenation of each word in words exactly once an...
2019-08-13 19:38:56 134
原创 Java 核心技术 卷II 高级特性 第9章安全
9.1 类加载器9.1.2 类加载器的层次结构9.1.4 编写你自己的类加载器package classLoader;import java.io.*;import java.lang.reflect.*;import java.nio.file.*;import java.awt.*;import java.awt.event.*;import javax.s...
2019-08-10 16:49:09 190
原创 Java 核心技术 卷II 高级特性 第8章注解处理
8.3 使用注解8.3.1 注解简介8.4 注解语法8.4.1 注解接口8.4.2 注解8.4.3 注解各类声明8.4.4 注解类型用法8.4.5 注解this8.5 标准注解8.5.1 用于编译的注解8.5.2 用于管理资源的注解8.5.3 元注解...
2019-08-10 10:51:09 198
原创 Java 核心技术 卷II 高级特性 第5章数据库编程
5.1 JDBC的设计5.1.1 JDBC驱动程序类型5.1.2 JDBC的典型用法5.2 结构化查询语言5.3 JDBC配置5.3.1 数据库URL
2019-08-09 18:59:19 271
原创 Java 核心技术 卷II 高级特性 第4章网络
4.1 连接到服务器4.1.1 使用telnet4.1.2 用Java连接到服务器package socket;import java.io.*;import java.net.*;import java.util.*;/** * This program makes a socket connection to the atomic clock in Bou...
2019-08-08 13:01:37 167
原创 Java 核心技术 卷II 高级特性 第3章XML
3.1 XML 概述3.1.1 XML文档的结构3.2 解析XML文档3.3 验证XML文档3.3.1 文档类型定义3.4 使用XPath来定位信息3.6 流机制解析器3.6.1 使用SAX解析器package sax;import java.io.*;import java.net.*;im...
2019-08-07 19:13:04 177
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人