自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

wojiushimogui的博客

正在路上的编程学习者

  • 博客(57)
  • 资源 (18)
  • 收藏
  • 关注

原创 《JAVA源码分析》:Thread

JAVA Thread 源码分析sleep(long millis, int nanos) 方法源码如下:public static void sleep(long millis, int nanos) throws InterruptedException { if (millis < 0) { throw new IllegalArgumentE

2016-03-30 22:35:19 2126

原创 《MySQL必知必会学习笔记》:子查询

子查询在开始了解子查询之前,首先做下准备工作,建立3个表, 一个是customers表,其中包括:客户名字、客户ID、客户Tel等。 一个是orders表,其中包括:订单号、客户ID、订单时间等。 一个是ordersitems表,其中包括:订单物品、订单号、物品数量。 准备工作1、建表建customers表的命令如下,其它的表与之类似:create table custome

2016-03-30 19:34:47 1630 3

原创 《leetCode》: Maximal Rectangle

题目Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.思路这个题目确实比较难,做不出来,在讨论组看到的别人的解法,借助了上一个题的思路。public int maximalRectangle(char[][] matr

2016-03-29 22:42:49 430

原创 《leetCode》:largestRectangleArea

题目Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.Above is a histogram where width of each b

2016-03-29 22:34:08 789

原创 《leetCode》:Missing Number

题目Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array.For example,Given nums = [0, 1, 3] return 2.Note:Your algorithm should run in li

2016-03-28 21:22:44 429

原创 《MySQL必知必会学习笔记》:数据分组

数据分组根据上一篇博文中所看到的,SQL聚集函数可用来汇总数据。这使我们能够对行进行计数,计算和与平均数,获得最大和最小值而不用检索所有数据。目前为止的所有计算都是在表的所有数据或匹配特定的where子句的数据上进行的。例如,在一门公共选修课中,我们需要统计来自每个班的人数各有多少个?应该怎么做呢? 可能有的人像下面这样做:select class,count(*) from student3 w

2016-03-28 20:59:05 957

原创 《MySQL必知必会学习笔记》:聚集函数

聚集函数我们经常需要汇总数据并不需要把它们实际检索出来,为此MySQL提供了专门的函数。使用这些函数,MySQL查询可用于检索数据,以便分析和报表生成。这种类型的检索例子有以下几种: 确定表中行数(或者满足某个条件或者是包含某个特定值的条件) 确定表中行组的和。 找出表列中的最大值、最小值和平均值。 MySQL给出了5个聚集函数。如下: AVG()

2016-03-28 20:58:05 1104

原创 《leetCode》:Find the Duplicate Number

题目:Find the Duplicate NumberGiven an array nums containing n + 1 integers where each integer is between 1 and n (inclusive), prove that at least one duplicate number must exist. Assume that there is on

2016-03-28 20:57:10 601

原创 《leetCode》:Repeated DNA Sequences

题目:Repeated DNA SequencesAll DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: “ACGAATTCCG”. When studying DNA, it is sometimes useful to identify repeated sequen

2016-03-28 20:56:22 500

原创 《leetCode》:Search a 2D Matrix II

题目Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted in ascending from left to right. Integers in each

2016-03-28 20:55:33 423

原创 《MySQL必知必会学习笔记》:数据处理函数

数据处理函数大多数SQL实现支持以下类型的函数1、用于处理文本(如将字符转换为大写或小写)的文本处理函数2、用于在数值数据上进行算术操作(如返回绝对值、进行代数运算)的数值函数。3、用于处理日期和时间值并从这些值中提取特定成分(例如:返回两个时间之差)的日期和时间函数。下面一一进行介绍。文本处理函数常见的文本处理函数如下:练习了几个的例子如下:日期处理函数常见的日期处理函数如下:试了一下如上介绍的函

2016-03-27 21:50:47 842

原创 《MySQL必知必会学习笔记》:创建计算字段

创建计算字段 :AS存储在数据库表中的数据都是一些基本的单元,并不是应用程序所需要的格式;例如,物品订单表存储物品的价格和数量,但不需要存储每个物品的总价格(价格乘以数量)。当为了打印发票的时候,就需要物品的总价格了。因此,存储在表中的数据都不是应用程序所需要的,我们需要直接从数据库中检索出转换、计算或格式化过的数据;而不是检索出数据,然后再在客户机应用程序或报告中重新格式化(或许你可以在客户机上面

2016-03-27 21:15:26 875

原创 《leetCode》:Majority Element II

题目Given an integer array of size n, find all elements that appear more than ⌊ n/3 ⌋ times. The algorithm should run in linear time and in O(1) space.思路这个题不会做也,下面思路来源于:https://leetcode.com/discuss/8219

2016-03-27 17:36:28 513

原创 《leetCode》:Minimum Size Subarray Sum

题目Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn't one, return 0 instead.For example, given the array [2,3,1,2,

2016-03-27 15:34:04 569

原创 《MySQL必知必会学习笔记》:正则表达式

正则表达式的应用前面的几节的过滤例子允许用匹配、比较和通配操作符来寻找数据。对于基本的数据过滤,这样就足够了。但是随着过滤条件的复杂性的增加,where子句本身的复杂性也有必要增加。这也就是正则表达式变得有用的地方。正则表达式是用来匹配文本中特殊的字符集合。正则表达式不是自己第一次见,在JAVA/C++ 这些语言中,都有正则表达式,不过他们的用途是一样的,都是匹配文本中的字符串。可能具体的用法不太一

2016-03-26 16:17:12 2532

原创 《MySQL必知必会学习笔记》:通配符的使用

通配符的使用 % _前面介绍的所有操作符都是针对已知值进行过滤的。不管是匹配一个还是多个,测试大于还是小于已知值,或者是检查某个范围的值,共同点是过滤中使用的值都是已知的。但是,这种过滤方法并不是任何时候都好用。例如,当我们想搜素 中以 a 开头的名字,应该怎么办呢?这个时候,使用通配符就是一种比较好的选择。下面就开始学习,介绍。%的使用%:是用来匹配任意多个字符的。任意多个字符包括0、1以

2016-03-26 14:11:25 1036

原创 《MySQL必知必会学习笔记》过滤数据

第六章:过滤数据,即where关键字的使用在实际过程中,我们并不需要将所有的数据显示出来,只会将我们感兴趣的行数据显示出来,例如:在老师想统计考试成绩在90~100分这个区间的有哪些人?就需要过滤数据。如需有条件地从表中选取数据,可将 WHERE 子句添加到 SELECT 语句。语法: SELECT 列名称 FROM 表名称 WHERE 列 运算符 值其中的运算符包括如下(图来源于:http://

2016-03-26 13:34:06 939

原创 《MySQL学习笔记》:ORDER BY的使用

第4章由于在上篇博文中,表user中只有两列(id,name)不方便实验,因此,在进行下面实验之前,我决定先建一个新的table。表的名字就叫student吧,具体如下创建表表中有三列,分别为:id,name,score;create table student(id int(10),name varchar(10),score varchar(10));其实,在创建表的时候,出现了很多的问题,第

2016-03-25 19:46:28 830

原创 《MySQL学习笔记》:查询

第三章1、当我们不知道可以使用的数据库名有哪些时?可以使用如下命令查看:`SHOW DATABASES;`结果如下:2、当我们知道了可以使用的数据库时,例如:mysql、information_schema、test等数据库是,如果我们想使用其中的test数据库,应该如何进入了? 可以使用如下命令:USE test; 3、在我们进去了某个数据库之后,可以用如下的命令查看这个数据库有

2016-03-25 16:31:12 1765

原创 《leetCode》:Largest Number

题目Given a list of non negative integers, arrange them such that they form the largest number.For example, given [3, 30, 34, 5, 9], the largest formed number is 9534330.Note: The result may be very larg

2016-03-24 20:20:40 483

原创 《leetCode》:Factorial Trailing Zeroes

题目Given an integer n, return the number of trailing zeroes in n!.Note: Your solution should be in logarithmic time complexity.思路一:不能AC思路,统计2和5的个数 ,时间复杂度为O(n)int min(int a,int b){ return a<b?a:b;}

2016-03-24 19:49:16 415

原创 《练手_快排的实现》

马上就是网易的实习生招聘的笔试也,刚好我参加了,所以在笔试前就写了这个快排。很好写也,希望笔试顺利吧,吼吼!!!#include<stdio.h>#include<stdlib.h>void swap(int *a,int *b){ int temp=*a; *a=*b; *b=temp;}int paration(int *arr,int start,int end

2016-03-22 18:31:23 525

原创 《leetCode》:Contains Duplicate

题目Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every element i

2016-03-20 20:38:10 372

原创 《leetCode》:Contains Duplicate II

题目Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the difference between i and j is at most k.思路此题比较

2016-03-20 19:42:06 370

原创 《leetCode》:Find Peak Element

题目A peak element is an element that is greater than its neighbors.Given an input array where num[i] ≠ num[i+1], find a peak element and return its index.The array may contain multiple peaks, in that ca

2016-03-20 17:04:13 426

原创 《leetCode》:Power of Three

题目Given an integer, write a function to determine if it is a power of three.Follow up:Could you do it without using any loop / recursion?思路一:不能AC开始由于没有想到好的思路,因此,想着要不利用循环来做下,即利用循环把3的所有次方均从小到大求一次并与n进行比对

2016-03-20 15:57:19 367

原创 《leetCode》:Power of Two

题目Given an integer, write a function to determine if it is a power of two.判断一个数是否是2的次方。思路即判断此整数的二进制表示中是否只存在一个 1.因此,思路就是不停的迭代,看是否此整数中只有一个 1. public boolean isPowerOfTwo(int n) { if(n<=0){

2016-03-20 15:41:48 417

原创 《leetCode》:Excel Sheet Column Number

题目Related to question Excel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corresponding column number.For example: A -> 1 B -> 2 C -> 3 ... Z -> 26

2016-03-20 15:18:45 330

原创 《leetCode》:Excel Sheet Column Title

题目Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ... 26 -> Z 27 -> AA 28 -> AB 思路通过对整数不断除26即可完成

2016-03-20 14:47:03 354

原创 《java学习的一些概念》

1、如何理解面向对象? 面向对象是一种思维方式,就是将过程、实体和逻辑用对象来进行抽象和概括的思维方式。2、什么是类? 将一类实物的静态属性和动态可以执行的操作组合在一些就得到了类的概念。 类是抽象的,用来模拟一类实物,是一个概念 但是,当类一旦定义,就永远存在了。3、什么是对象 对象就是一个个类的实例,是现实存在的,生命周期是短暂的,会生成也会消失。4、访问控制符pu

2016-03-20 13:01:38 585

原创 《leetCode》:Compare Version Numbers

题目Compare two version numbers version1 and version2.If version1 > version2 return 1, if version1 < version2 return -1, otherwise return 0.You may assume that the version strings are non-empty and cont

2016-03-19 19:37:50 447

原创 《leetCode》:Majority Element

题目Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.You may assume that the array is non-empty and the majority element alway

2016-03-17 22:23:26 396

原创 《leetCode》:Reverse Linked List

题目Reverse a singly linked list.思路这个题也相当简单。借用接个指针来完成即可。/** * Definition for singly-linked list. * struct ListNode { * int val; * struct ListNode *next; * }; */struct ListNode* reverseList

2016-03-17 22:13:42 386

原创 《leetCode》:Remove Linked List Elements

题目Remove all elements from a linked list of integers that have value val.ExampleGiven: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6Return: 1 --> 2 --> 3 --> 4 --> 5思路这个题也比较简单,是一个基础题。借用几个指针就可以解决。/**

2016-03-17 22:07:17 387

原创 《leetCode》:Intersection of Two Linked Lists

题目Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:A: a1 → a2 ↘

2016-03-17 21:54:31 409

原创 《leetCode》:Maximum Product Subarray

题目Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array [2,3,-2,4],the contiguous subarray [2,3] has the largest prod

2016-03-17 21:31:52 314

原创 《leetCode》:Basic Calculator II

题目Implement a basic calculator to evaluate a simple expression string.The expression string contains only non-negative integers, +, -, *, / operators and empty spaces . The integer division should trun

2016-03-13 21:31:21 363

原创 《leetCode》:Basic Calculator

题目Implement a basic calculator to evaluate a simple expression string.The expression string may contain open ( and closing parentheses ), the plus + or minus sign -, non-negative integers and empty spa

2016-03-13 20:25:04 429

原创 《leetCode》:Evaluate Reverse Polish Notation

题目Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand may be an integer or another expression.Some examples: ["2", "1", "+", "3", "*

2016-03-13 19:20:28 465

原创 《leetCode》:Min Stack

题目Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top() -- Get t

2016-03-13 18:08:56 496

系统仿真学报排版格式

系统仿真学报排版格式

2017-05-08

google三大论文中文版

google三大论文中文版,欢迎下载

2016-12-01

淘宝技术这十年

淘宝技术这十年,有需要的可以下载看看

2016-11-21

分布式Java应用基础与实践

分布式Java应用基础与实践的pdf版,这本书只有淘宝有盗版,这里提供电子档

2016-11-20

guava-18.0.jar

guava-18.0.jar

2016-10-23

坦克大战的某一个版本

这是本人写坦克大战时完成过程中的一个版本,这个版本完成到了可以随机产生多个敌方坦克了

2016-06-22

坦克大战(发射多颗子弹的版本)

这是本人在写坦克大战中实现了坦克可以发送多颗子弹的版本,如果你需要,可以下载。

2016-06-21

python图像处理库PIL

python图像处理库PIL,可能有的人需要

2015-12-17

python识别验证码的库pytesser

可能有的人需要,特此提供,用法说明:直接将其解压缩后将将文件夹放在你即将要运行的程序相同的目录下。

2015-12-17

Java并发编程实战

Java并发编程实战完整版 高清噢 带标签噢 欢迎下载

2015-10-25

matlab2012b与vs2010交叉调用时的编译环境设置

matlab2012b与vs2010交叉调用时的编译环境设置,是别人的一篇论文,感觉可能有人需要,特上传供大家下载使用

2015-08-25

电子科技大学研究生算法课的作业的答案

这是电子科技大学研究生算法课程的几次作业的答案,供大家下载参考

2015-05-15

Java设计模式详解总结和例子

这是java设计模式的23中的详解,供大家下载学习

2015-05-15

DSP学习的一些例子程序

这是与我的关于DSP的课程资料相对应的一些例子程序,可以便于我们对其进行进一步的学习

2015-05-15

Qt入门教程

这是关于Qt开发从0开始的一些讲义,由浅入深

2015-05-15

读取心电图txt格式文件数据并且显示的app

这个一个读取心电图数据的app,大家可以在手机的存储txt文件的数据,并修改代码中的文件地址,即可运行app看到心电图就在我们的手机上面刷新显示出来了

2015-05-15

MIT-BIH的心电图数据将V5导联的数据提取出来的txt的数据文件

最近在做一个关于心电图处理的App,需要MIT-BIH一个导联的并且以分号“;”将数据分开的的全部数据,因此也就写了一个小程序将原有的按时间和幅度存放的txt文件变成了我所需要的,现在上传上来供大家下载

2015-05-15

空空如也

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

TA关注的人

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