04 2019 档案
摘要:1、引入maven 2、自己定义一个java对象 3、常见的用法
阅读全文
摘要:待爬取的牛客网的实习信息 https://www.nowcoder.com/job/center 首先在Eclipse新建一个maven项目 1、在maven文件中加入以下的代码 2、提取所需要的信息 这里编写CSS规则,有点麻烦,我们可以利用游览器自带的工具,帮助我们快速选择所需要的的元素 比如我
阅读全文
摘要:17. Letter Combinations of a Phone Number Medium Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the
阅读全文
摘要:public List generateParenthesis(int n) { ArrayList result = new ArrayList(); dfs(result, "", n, n); return result; } /* left and right represents the remaining number of ( and ) that need...
阅读全文
摘要:Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the s
阅读全文
摘要:MD5即Message-Digest Algorithm 5(信息-摘要算法5),用于确保信息传输完整一致。是计算机广泛使用的杂凑算法之一(又译摘要算法、哈希算法),主流编程语言普遍已有MD5实现。将数据(如汉字)运算为另一固定长度值,是杂凑算法的基础原理,MD5的前身有MD2、MD3和MD4。 1
阅读全文
摘要:package com.problem01; import java.util.HashMap; public class Main { public static void main(String[] args) { String s = "abcddbcaa"; System.out.println(longestPalindrome(s)); } public ...
阅读全文
摘要:一、基本环境配置 1、安装NodeJS https://nodejs.org/en/download/ 2、设置淘宝镜像:大家都知道国内直接使用 npm 的官方镜像是非常慢的,这里推荐使用淘宝 NPM 镜像。 npm install -g cnpm --registry=https://regist
阅读全文
摘要:Maven文件: 控制层: User类 前端页面: 前端页面测试2 测试2运行: 总结: 1、JSON.stringify() 方法用于将 JavaScript 值转换为 JSON 字符串 2、contentType:"application/json;charset=utf-8",//这里很重要,
阅读全文
摘要:一、建表和插入数据 插入数据 二、问答题
阅读全文
摘要:package Model; import error.MyException; import utils.DateTime; public class Car { private String regNo; private String make; private String model; private String driverName; private int pas...
阅读全文
摘要:public class Solution { public static void main(String[] args) {} public List preOrderTravel(TreeNode root) { List result = new ArrayList(); if(root == null) { ...
阅读全文
摘要:一、概念 1、前序遍历: 2、中序遍历: 3、后序遍历 4、层次遍历 从上往下打印出二叉树的每个结点,同一层的结点按照从左到右的顺序打印 二、代码 2.1 首先定义TreeNode 2.2 代码
阅读全文
摘要:2019-04-05 09:56:17 customer表 invoice表 invoice_item表 一、建表和插入数据 插入数据 题目: -- A.显示张表中的所有数据 -- B.列出每个客户的LastName,FirstName和Phone -- C.列出所有名为'Nikki'客户的Last
阅读全文