本月博客排行
-
第1名
wy_19921005 -
第2名
mft8899 -
第3名
benladeng5225 - duanfei
- Anmin
- wddpwzzhao123
年度博客排行
-
第1名
龙儿筝 -
第2名
宏天软件 -
第3名
wy_19921005 - benladeng5225
- vipbooks
- kaizi1992
- tanling8334
- sam123456gz
- arpenker
- zysnba
- fantaxy025025
- xiangjie88
- wallimn
- e_e
- jh108020
- ganxueyun
- Xeden
- xyuma
- wangchen.ily
- zhanjia
- johnsmith9th
- zxq_2017
- forestqqqq
- jbosscn
- daizj
- xpenxpen
- 喧嚣求静
- kingwell.leng
- lchb139128
- kristy_yy
- 青否云后端云
- javashop
- lzyfn123
- sunj
- yeluowuhen
- ajinn
- lerf
- lemonhandsome
- chenqisdfx
- xiaoxinye
- lyndon.lin
- flashsing123
- bosschen
- zhangjijun
- sunnylocus
- lyj86
- paulwong
- sgqt
- hudiemeng870329
- mft8899
最新文章列表
poj3624 Charm Bracelet
Description
Bessie has gone to the mall's jewelry store and spies a charm bracelet. Of course, she'd like to fill it with the best charms possible from the N (1 ≤ N ≤ 3,402) available charms. Each cha ...
把字符串从小到大输出(自己测试用的)
public class TestString { public static void main(String[] args){ String s="123427"; List list=new ArrayList(); for(int i=0;i<s.length();i++){ list.add(s.charAt(i)); } Co ...
冒泡法排序
//冒泡法排序public class MaoPao { public void mp(int[] in){ for(int i=in.length-1;i>0;i--){ for(int j=0;j<i;j++){ if(in[j]>in[j+1]){ int temp = in[j+1];//注意这句话谁赋值给谁。 in[j+1]=in[j]; ...
选择排序法
//选择排序法public class XuanZe { public void xz(int[] in){ for(int i=0;i<in.length-1;i++){ for(int j=1+i;j<in.length;j++){ if(in[i]>in[j]){ int temp=in[i]; in[i]=in[j]; ...
JavaScript中55个常用技巧
[/color]1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键
<table border oncontextmenu=return(false)><td>no</table> 可用于Table
2. <body onselectstart="return ...
理解并解决GBK转UTF-8奇数中文乱码
最近在做一个反馈功能,把数据反馈到对方公司网站,我公司是GBK编码,对方公司是UTF-8编码。因此,我需要将GBK编码数据转换成UTF-8编码数据,这样对方网站才不会乱码。最简单的方法是将HttpClient的ContentCharset设置为utf-8;如果ContentCharset是gbk并且又不想设置为utf-8,那么就需要将数据转换成UTF-8编码再发到对方网站。
问题出现:GBK ...
***joj 1026 the staircase 利用递归、动态规划和一道类似题目
转自网易何国涛的博客http://zhedahht.blog.163.com/blog/static/25411174200732711051101/
题目:输入一个正数n,输出所有和为n连续正数序列。
例如输入15,由于1+2+3+4+5=4+5+6=7+8=15,所以输出3个连续序列1-5、4-6和7-8。
分析:这是网易的一道面试题。
这道题和本面试题系列的第1 ...
How to generate permutations recursively
I have posted code to calcuate permutations in order, this is another more short recursive one of generating non-order permutations.
package alg_test;
public class Permutation2 {
void swap(int a ...
Problem11
问题描述:
In the 2020 grid below, four numbers along a diagonal line have been marked in red.
08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08
49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 0 ...
Linux内存:内存管理的实质
1. 内核初始化:
* 内核建立好内核页目录页表数据库,假设物理内存大小为len,则建立了[3G--3G+len]::[0--len]这样的虚地址vaddr和物理地址paddr的线性对应关系;
* 内核建立一个page数组,page数组和物理页面系列完全是线性对应,page用来管理该物理页面状态,每个物理页面的虚地址保存在page->virtual中;
...