创建数据库和表 首先,创建一个web项目 然后引入jar包(jstl.jar和standard.jar是jstl和el包,在jsp页面中需要手动加 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> 才有效) 创建jsp页 ...
分类:
编程语言 时间:
2017-11-09 20:56:42
阅读次数:
202
题目要求 Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull. Follow up: Can you solve it without using extra sp ...
分类:
其他好文 时间:
2017-11-07 01:22:39
阅读次数:
183
实训第四天了,最近脑子里灌的东西比较多,现在终于感到脑子不够用了,脑子疼啊。 今天学的依旧是mysql,学的是查询,查询命令单个简答,两个条件三个条件一组合,哎呀我的脑容量直接感觉不够用了,差点哭晕在厕所 查询条件 (1)简单查询 select * from Info select Code as ...
分类:
其他好文 时间:
2017-11-03 21:43:44
阅读次数:
135
Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: begin to in ...
分类:
其他好文 时间:
2017-11-03 16:18:58
阅读次数:
118
创建库 create database s19 character set utf8(创建数据库时指定字符编码否则中文会乱码);create database 数据库名 创建表 create table 表名( id int primary key auto_increment, name varc ...
分类:
数据库 时间:
2017-11-01 19:40:49
阅读次数:
253
Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it without using extra space? 思路:快慢指针,设置一个走两步的快指针,和一个走一步的慢指针,如果有环,则它们一 ...
分类:
其他好文 时间:
2017-11-01 14:59:50
阅读次数:
176
1.公众号-微信支付-开发配置修改的授权目录格式为:http://demand.lision.cn/wxpay/2.接口授权-网页授权3.如遇到如下错Fatal error: Uncaught exception ‘WxPayException‘ with message ‘curl出错,错误码:6 ...
分类:
微信 时间:
2017-10-30 14:57:12
阅读次数:
182
题目描述 输入一个链表,从尾到头打印链表每个节点的值。 思路1:stack 1 import java.util.ArrayList; 2 import java.util.Stack; 3 public class Solution { 4 public ArrayList<Integer> pr ...
分类:
其他好文 时间:
2017-10-29 23:21:06
阅读次数:
155
题目描述: 输入一个复杂链表(每个节点中有节点值,以及两个指针,一个指向下一个节点,另一个特殊指针指向任意一个节点),返回结果为复制后复杂链表的head。(注意,输出结果中请不要返回参数中的节点引用,否则判题程序会直接返回空) 分析: 复制链表的复制分为3个步骤: 代码: ...
分类:
其他好文 时间:
2017-10-29 17:37:47
阅读次数:
161
用C语言的指针实现了单向链表中的几项基本操作:新建链表,置空链表,插入节点(由于在尾部加入新节点尤为常用,故单独用一个函数实现),删除节点。为了以上操作更便捷,另分别写了返回尾节点和某特定节点的函数。为了统一插入及删除节点的操作,使其不因节点位置不同而受到影响(主要是插入或删除头节点),我在真正的表 ...
分类:
编程语言 时间:
2017-10-29 12:39:32
阅读次数:
144