Topic:Given a binary tree, return the postorder traversal of its nodes ' values.For example:Given binary Tree {1,#,2,3} , 1 2 / 3Return [3,2,1] .Solving:Recursion is the same as the previous sequence and the first order, just exchange
Static keyword:Usage: Used to modify members (member variables, member functions) feature 1 is loaded as the class loads and disappears as the class disappears. Indicates the longest life cycle. 2 takes precedence over the existence of an object,
Topic:Given an integer, convert it to a Roman numeral.Input is guaranteed to being within the range from 1 to 3999.Test instructionsGiven an integer, convert it to Roman numerals.The topic given input is guaranteed to be between 1-3999.Algorithm
Topic:Write a function to find the longest common prefix string amongst an array of strings.Test instructionsWrite a function that finds the longest common substring in a set of arrays.Algorithm Analysis:You need to build a double loop. The first
Java Virtual machineGarbage collection mechanismJava program running ProcessThe difference between a compiled and interpreted language:Compiled type: Directly can be compiled into the operating system can recognize the executable file format. For
Spring1) Open source framework2) IoC (control inversion), writes the creation and dependency of the class in the configuration file, is injected by the configuration file, realizes the loose coupling3) AOP will be safe, the transaction is equal to
For java annotations @ SuppressWarnings, suppresswarnings
The last annotation provided by J2SE is @ SuppressWarnings. This annotation serves to give the compiler an instruction to tell it to silence some internal warnings of the annotated code
Files are deleted as subfiles.
First, I will briefly describe some basics: (the folder mentioned below is the directory. I did not know what the directory is at first, and then I learned that the directory is the folder ).
1. First, we will
Spring references beans in different xml
To reference the bean defined in the Spring-Common.xml in the Spring-Output.xml, you need to use
Label. If it is referenced in the same xml file, use
Label.
package com.spring.output;public class
Struts2 Study Notes --- custom interceptorWhat is an interceptor?
In struts2, interceptors are divided into the interceptors defined by Struts2 and custom interceptors. It intercepts an Action before it is executed, and adds some operations after
STL-string (typical operation demo)1String ConceptString is a string type of STL, which is usually used to represent strings. Before using string, the string is usually represented by char. String and char * can both be used to represent strings.
Four traversal methods of the Map set and four map sets
Compare the code written a long time ago with the previous one! Easy to view later
1 import java. util. hashMap; 2 import java. util. iterator; 3 import java. util. map; 4 5 public class
Gson tips and notes
I encountered something new when I was reading the project as usual. At least it was a new thing for me. Gson
Not much nonsense. In my opinion, Gson is mainly used to convert objects and json.
For example, if you want to
Java Web Verification Code1. RandomCode
RandomCode is a tool class for generating verification codes. It supports both English and digital verification codes. The verification codes include uppercase and lowercase letters and arrays. English I, o,
Design Mode-Decorator)Decorator ):By dynamically adding some additional functions to an object, the decoration mode is more flexible than the subclass generation.Instance: ConcreteComponent: allows the Decorator object to add functions for itself.
Print the number of different characters in the string
Description:
Find the number of different characters in the string.
Question category:
String
Difficulty:
Elementary
Running time limit:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service