WordBreak

Given a non-empty string s and a dictionary wordDict containing a list of non-empty words, determine if s can be segmented into a space-separated sequence of one or more dictionary words. You may assume the dictionary does not contain duplicate w...

Read More

SymmetricTree

Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmetric: 1 / \ 2 2 / \ / \ 3 4 4 3 But the following [1,2,2,null,3,null,3] is not: 1 / \ 2 2...

Read More

ValidateBinarySearchTree

import org.junit.jupiter.api.Test;import org.omg.CORBA.INTERNAL; Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only nodes with keys...

Read More

UniqueBinarySearchTreesII

import org.junit.jupiter.api.Test; 题目的描述如下 * Given n, how many structurally unique BST's (binary search trees) that store values 1...n? For example, Given n = 3, there are a total of 5 unique BST's. 1 3 3 2 ...

Read More

命令行常用参数

1.命令行中1.上一条命令的最后一个参数 : !$2.上一条命令的第 n 个参数 : !:n3.上一条命令的名称 : !#4.上一条命令的内容 : !!5.上n条命令的内容 : n!!2.shell 脚本中1.上一条命令的名称 : $02.上一条命令的第 n 个参数 :$n3.上一条命令的执行情况 : 0 正常退出 非0不正常

Read More

三大框架整合

1.整合思想 web 层 -> struts2 service 层 -> Spring dao 层 -> Hibernate整合就是两两整合,struts 和 spring 整合,然后 spring 和 hibernate 整合。 struts 和 spring 整合就是 action 需要的 service 直接通过 spring 实例化并且注入到 action 中 spring 和 hibernate 整合就是把 sessionFactory 放在 spring ...

Read More

Spring笔记(三)

1.使用注解实现 aop 配置 xml12345678910111213141516171819202122232425262728293031323334353637<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http:...

Read More

Spring笔记(二)

1.注解ioc1.开启注解扫描123456789<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:conte...

Read More


Powered by Hexo and Hexo-theme-hiker

Copyright © 2015 - 2025 昨夜凛雨 All Rights Reserved.

UV : | PV :