摘要:
刚接触到Redis,首先对Redis有一个初步的了解。 开源,免费,遵守BSD协议,key-value数据库。 可以将内存中的数据保存在磁盘中,重启的时候可以再次加载使用。 多种key-value类型的数据。 主从模式的数据备份。 高性能读写。 redis所有操作都是原子性的,单个操作的原子性可以通 阅读全文
摘要:
Given a linked list, swap every two adjacent nodes and return its head. For example, Given 1->2->3->4, you should return the list as 2->1->4->3. Your 阅读全文
摘要:
struts2是一个较为成熟的mvc框架,先看看怎么配置struts2并且产生helloworld页面。 首先从官网下载struts2,http://struts.apache.org/download.cgi,用2.5就可以,本文也是基于2.5说明的,其他版本配置的时候会略有不同。环境tomcat 阅读全文
摘要:
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of 阅读全文
摘要:
Given an array and a value, remove all instances of that value in-place and return the new length. Do not allocate extra space for another array, you 阅读全文
摘要:
公司给的一个小的practice C# vs2017 Stage 1 (cmd)1. Parse the dll (reflection)2. Write all the public methods to a txt file (io) Stage 2 (cmd)1. Create a local 阅读全文
摘要:
12.Integer to Roman Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999. 拿到题目,分析,比较简单,除掉相应的基数单位 阅读全文
摘要:
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font 阅读全文
摘要:
最近要看struts2源码 仿照了一下查看jdk源码的方式 首先你要有strtus2的jar包和源码,在struts官网上下载时,选择full版本,里面会有src也就是源码了。 jar导入项目,保证可以引用。然后要把struts2目录下的src打包成zip。在项目上右键,build path。 选择 阅读全文
摘要:
volatile用来修饰变量。Java 语言中的 volatile 变量可以被看作是一种 “程度较轻的 synchronized”;与 synchronized 块相比,volatile 变量所需的编码较少,并且运行时开销也较少,但是它所能实现的功能也仅是synchronized 的一部分。 首先要 阅读全文