自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(51)
  • 收藏
  • 关注

转载 商业模式

转载于:https://www.cnblogs.com/PureJava/p/11502564.html

2019-09-10 20:01:00 402

转载 知乎_产品结构图

转载于:https://www.cnblogs.com/PureJava/p/11232145.html

2019-07-23 15:38:00 768

转载 Intellij中request等对象无法解析

问题描述刚刚从eclipse转过来IDEA开发Java web,发现创建项目之后跟eclipse不一样,jsp内置对象统统都不能代码提示或者自动补全。甚至出现内置对象 Cannot resolve method ‘print(int)'报错原理这是没有解决依赖包的原因,所以解决方法就是把依赖包添加进去解决方法打开 File->Project Stru...

2019-04-17 22:42:00 790

转载 OneNote学习笔记----语言概述

1.软件 : 系统软件 vs 应用软件2.人与计算机做交互:使用计算机语言。 图形化界面 vs 命令行方式 dir md rd cd cd.. cd/ del exit 3.语言的分类:第一代:机器语言 第二代:汇编语言 第三代:高级语言(面向过程 --- 面向对象)4.java语言的特性:①面向对象性 ②健壮性 ③跨平台性(write on...

2019-04-12 13:46:00 298

转载 四、归并排序(mergesort)

最坏情况的时间复杂度:O(N log N)归并排序是稳定排序,它也是一种十分高效的排序,能利用完全二叉树特性的排序一般性能都不会太差 。java中Arrays.sort()采用了一种名为TimSort的排序算法,就是归并排序的优化版本。从上文的图中可看出,每次合并操作的平均时间复杂度为O(n),而完全二叉树的深度为|log2n|。总的平均时间复杂度为O(nlogn)。而且,归并排...

2019-03-28 21:15:00 517

转载 三、堆排序(Heapsort),优先队列可以用于O(N log N)

三、堆排序(Heapsort)优先队列可以用于O(N log N)存储空间增加一倍排序类别排序方法时间复杂度时间复杂度空间复杂度稳定性复杂性平均情况最坏情况最好情况...

2019-03-25 09:53:00 183

转载 二、希尔排序(Shellsort)-- 缩减增量排序(diminishing increment sort)

• 最坏情况下运行时间为 Θ(N2),此时为Hibbard增量( 希尔排序是把记录按下标的一定增量分组,对每组使用直接插入排序算法排序;随着增量逐渐减少,每组包含的关键词越来越多,当增量减至1时,整个文件恰被分成一组,算法便终止。 简单插入排序很循规蹈矩,不管数组分布是怎么样的,依然一步一步的对元素进行比较,移动,插入,比如[5,4,3,2,1,0]这种倒序序列,数...

2019-03-24 21:32:00 206

转载 一、插入排序(insertion sort)

Public class InsertionSort{ Public static<AnyType extends Comparable<? Super AnyType>> AnyType[] insertionSort(AnyType[]a){ intj; for(intp=...

2019-03-24 21:29:00 122

转载 hashmap冲突的解决方法以及原理分析:

在Java编程语言中,最基本的结构就是两种,一种是数组,一种是模拟指针(引用),所有的数据结构都可以用这两个基本结构构造,HashMap也一样。当程序试图将多个 key-value 放入 HashMap 中时,以如下代码片段为例:HashMap<String,Object> m=new HashMap<String,Object>();m.put("...

2019-03-20 12:42:00 221

转载 sudoku计算

数独是一个我们都非常熟悉的经典游戏,运用计算机我们可以很快地解开数独难题,现在有一些简单的数独题目,请编写一个程序求解。输入描述:输入9行,每行为空格隔开的9个数字,为0的地方就是需要填充的。输出描述:输出九行,每行九个空格隔开的数字,为解出的答案。分析: 这里的数独就是9行9列的数组,满足每一行、每一列、每一个宫内的数字均含1-9,不重复。 解题思路:DFS深度填数检测+回...

2019-03-16 09:39:00 143

转载 MAP按照value排序

import java.util.Collections;import java.util.Comparator;import java.util.LinkedHashMap;import java.util.LinkedList;import java.util.List;import java.util.Map;import java.util.TreeMap;public cl...

2019-03-12 19:57:00 176

转载 Map遍历四种方法

转载:http://www.cnblogs.com/kristain/articles/2033566.htmlpublic static void main(String[] args) {Map<String, String> map = new HashMap<String, String>();map.put("1", "value1");...

2019-03-12 19:50:00 88

转载 Java native方法

附有连接(https://www.cnblogs.com/jingmoxukong/p/4302891.html),其中很多是引用其他作者,主要是自己学习随笔,如果有问题,请与我联系,万分感谢!转载于:https://www.cnblogs.com/PureJava/p/10503409.html...

2019-03-09 22:19:00 66

转载 [PAT] 1148 Werewolf - Simple Version (20 分)Java

Werewolf(狼人杀) is a game in which the players are partitioned into two parties: the werewolves and the human beings. Suppose that in a game,player #1 said: "Player #2 is a werewolf.";playe...

2019-03-08 21:02:00 91

转载 [PAT] 1143 Lowest Common Ancestor (30 分)Java

The lowest common ancestor (LCA) of two nodes U and V in a tree is the deepest node that has both U and V as descendants.A binary search tree (BST) is recursively defined as a binary tree which...

2019-03-08 21:02:00 117

转载 [PAT] 1096 Consecutive Factors (20 分)Java

Among all the factors of a positive integer N, there may exist several consecutive numbers. For example, 630 can be factored as 3×\times×5×\times×6×\times×7, where 5, 6, and 7 are the three...

2019-03-08 21:00:00 97

转载 [PAT] 1092 To Buy or Not to Buy (20 分)Java

Eva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were many colorful strings of beads. However the owner of the shop would onl...

2019-03-08 20:58:00 114

转载 [PAT] 1088 Rational Arithmetic (20 分)Java

For two rational numbers, your task is to implement the basic arithmetics, that is, to calculate their sum, difference, product and quotient.Input Specification:Each input file contains one t...

2019-03-08 20:57:00 197

转载 [PAT] 1084 Broken Keyboard (20 分)Java

On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appear on screen.Now given a string that you are suppos...

2019-03-08 20:54:00 97

转载 [PAT] 1081 Rational Sum (20 分)Java

Given N rational numbers in the form numerator/denominator, you are supposed to calculate their sum.Input Specification:Each input file contains one test case. Each case starts with a positiv...

2019-03-08 20:42:00 179

转载 [PAT] 1077 Kuchiguse (20 分)Java

The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflection of the speaker's personality. Such a preference is ca...

2019-03-08 20:40:00 134

转载 [PAT] 1073 Scientific Notation (20 分)Java

Scientific notation is the way that scientists easily handle very large numbers or very small numbers. The notation matches the regular expression [+-][1-9].[0-9]+E[+-][0-9]+ which means that the...

2019-03-08 20:39:00 137

转载 [PAT] 1069 The Black Hole of Numbers (20 分)Java

For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decreasing order, a new number can be obtained by ...

2019-03-08 20:38:00 571

转载 [PAT] 1065 A+B and C (64bit) (20 分)Java

Given three integers A, B and C in [−2​63​​,2​63​​], you are supposed to tell whether A+B>C.Input Specification:The first line of the input gives the positive number of test cases, T (≤10)...

2019-03-08 20:37:00 123

转载 [PAT] 1061 Dating (20 分)Java

Sherlock Holmes received a note with some strange strings: Let's date! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm. It took him only a minute to figure out that those strange st...

2019-03-08 20:36:00 84

转载 [PAT] 1058 A+B in Hogwarts (20 分)Java

If you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid explained it to Harry, "Seventeen silver Sickles to a Galleon and twenty-nine Knuts to...

2019-03-08 20:35:00 146

转载 [PAT] 1054 The Dominant Color (20 分)Java

Behind the scenes in the computer's memory, color is always talked about as a series of 24 bits of information for each pixel. In an image, the color with the largest proportional area is called ...

2019-03-08 20:35:00 158

转载 [PAT] 1050 String Subtraction (20 分)Java

Given two strings S​1​​ and S​2​​, S=S​1​​−S​2​​ is defined to be the remaining string after taking all the characters in S​2​​ from S​1​​. Your task is simply to calculate S​1​​−S​2​​ for any gi...

2019-03-08 20:34:00 164

转载 [PAT] 1046 Shortest Distance (20 分)Java

The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of exits.Input Specification:Each input file ...

2019-03-08 20:33:00 161

转载 [PAT] 1042 Shuffling Machine (20 分)Java

Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid "inside jobs" where employees collaborate with ga...

2019-03-08 20:31:00 131

转载 [PAT] 1041 Be Unique (20 分)Java

Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a number chosen from [1,10​4​​]. The first one who b...

2019-03-08 20:29:00 186

转载 [PAT] 1031 Hello World for U (20 分)Java

Given any string of N (≥5) characters, you are asked to form the characters into the shape of U. For example, helloworld can be printed as:h de ll rlowoThat is, the characters must...

2019-03-08 20:28:00 149

转载 [PAT] 1027 Colors in Mars (20 分) Java

People in Mars represent the colors in their computers in a similar way as the Earth people. That is, a color is represented by a 6-digit number, where the first 2 digits are for Red, the middle ...

2019-03-08 20:27:00 117

转载 [PAT] 1023 Have Fun with Numbers (20 分)Java

Notice that the number 123456789 is a 9-digit number consisting exactly the numbers from 1 to 9, with no duplication. Double it we will obtain 246913578, which happens to be another 9-digit numbe...

2019-03-08 20:26:00 156

转载 [PAT] 1022 Digital Library (30 分) Java

A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published years. Each book is assigned an unique 7-digit num...

2019-03-08 20:24:00 121

转载 [PAT] 1020 Tree Traversals (25 分)Java

Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to output the level order traversal sequence of th...

2019-03-08 20:23:00 138

转载 [PAT] 1019 General Palindromic Number (20 分)Java

A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 1234321 is a palindromic number. All single digit numbers are palindromic ...

2019-03-08 20:22:00 160

转载 [PAT] 1015 Reversible Primes (20 分)Java

A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a reversible prime because its reverse 37 is also...

2019-03-08 20:21:00 141

转载 [PAT] 1013 Battle Over Cities (25 分)Java

It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that city are closed. We must know immediately if w...

2019-03-08 20:20:00 196

转载 [PAT] 1012 The Best Rank (25 分)Java

To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mathematics (Calculus or Linear Algrbra), and E ...

2019-03-08 20:18:00 279

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除