自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

loserChen的博客

https://github.com/loserChen

  • 博客(180)
  • 资源 (1)
  • 收藏
  • 关注

原创 操作系统基础知识复习总结

操作系统操作系统概述操作系统作用存储管理处理机管理设备管理文件管理用户接口操作系统的定义是管理和控制计算机系统中各种硬件和软件资源、合理地组织计算机工作流程的系统软件,是用户与计算机之间的接口。多道批处理系统在内存中同时存放多道程序,在管理程序的控制下交替执行,这些作业共享CPU和系统其他资源。分时...

2018-06-11 13:55:23 106978 16

原创 Windows下Anaconda使用conda activate激活环境出错

今天激活anaconda下的base环境报错:conda activate base报错:CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.If using 'conda activate' from a batch script, change yourinvocation to 'CALL conda.bat activate'.To initialize y

2020-08-12 14:46:28 16392 12

原创 Linux下安装LightGBM-GPU版本

安装依赖sudo apt-get install --no-install-recommends git cmake build-essential libboost-dev libboost-system-dev libboost-filesystem-dev安装库pip install setuptools wheel numpy scipy scikit-learn -U安装GPU版...

2020-03-20 11:35:21 1654

原创 正定与半正定矩阵的理解

这篇文章解释的非常好。

2020-03-09 11:06:25 1689

原创 LeetCode不定时刷题——palindrome

Determine whether an integer is a palindrome. Do this without extra space.判断一个整型是否是回文,回文需要规避负数,以及小于10的正数,别的与之前的Reverse Number无异class Solution {public boolean isPalindrome(int x) { int result=0;...

2020-03-08 17:58:46 226

原创 LeetCode不定时刷题——LCP

Write a function to find the longest common prefix string amongst an array of strings.class Solution {public String longestCommonPrefix(String[] strs) { if(strs.length==0){ return ""; ...

2020-03-08 17:57:44 381

原创 LeetCode不定时刷题——Valid Parentheses

Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.The brackets must close in the correct order, "()" and "()[]{}" are all valid but...

2020-03-08 17:57:09 171

原创 LeetCode不定时刷题——Merge two sorted linked lists and return it as a new list

Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists./** * Definition for singly-linked list. * public class ...

2020-03-08 17:56:35 215

原创 LeetCode不定时刷题——Remove Duplicates

Given a sorted array, remove the duplicates in-place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this by modifying the...

2020-03-08 17:55:56 243

原创 LeetCode不定时刷题——Implement strStr()

Implement strStr().Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.Example 1:Input: haystack = “hello”, needle = “ll”Output: 2Example 2:In...

2020-03-08 17:55:20 136

原创 LeetCode不定时刷题——Reverse Interger

Given a 32-bit signed integer, reverse digits of an integer.Example 1:Input: 123Output: 321Example 2:Input: -123Output: -321Example 3:Input: 120Output: 21Note:Assume we are dealing with...

2020-03-08 17:54:48 149

原创 LeetCode不定时刷题——Maximum Subarray

Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [-2,1,-3,4,-1,2,1,-5,4],the contiguous subarray [4,-1,2,1] has th...

2020-03-08 17:54:12 153

原创 LeetCode不定时刷题——Length of Last Word

Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word does not exist, return 0.Note: A word is defined...

2020-03-08 17:53:30 199 1

原创 LeetCode不定时刷题——Climbing Stairs

Climbing StairsYou are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?Note: Given n will...

2020-03-08 17:52:48 363

原创 LeetCode不定时刷题——Remove Duplicates from Sorted List

Remove Duplicates from Sorted ListGiven a sorted linked list, delete all duplicates such that each element appear only once.For example,Given 1->1->2, return 1->2.Given 1->1->2->...

2020-03-08 17:51:54 192

原创 LeetCode不定时刷题——Merge Sorted Array

Merge Sorted ArrayGiven two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.Note:You may assume that nums1 has enough space (size that is greater or equal to m + n...

2020-03-08 17:51:18 233

原创 LeetCode不定时刷题——Same Tree

Same TreeGiven two binary trees, write a function to check if they are the same or not.Two binary trees are considered the same if they are structurally identical and the nodes have the same value....

2020-03-08 17:50:44 190

原创 LeetCode不定时刷题——Symmetric Tree

Symmetric TreeGiven a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree [1,2,2,3,4,4,3] is symmetric: 1 / \ 2 2 / \ / \...

2020-03-08 17:49:56 179

原创 LeetCode不定时刷题——Convert Sorted Array to Binary Search Tree

Convert Sorted Array to Binary Search TreeGiven an array where elements are sorted in ascending order, convert it to a height balanced BST./** * Definition for a binary tree node. * public class T...

2020-03-08 17:49:13 180

原创 LeetCode不定时刷题——Ugly Number

Ugly NumberWrite a program to check whether a given number is an ugly number.Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 6, 8 are ugly while 14 is not ug...

2020-03-07 22:19:47 128

原创 LeetCode不定时刷题——Count Primes

Count PrimesDescription:Count the number of prime numbers less than a non-negative number, n.Solution:class Solution { public int countPrimes(int n) { if(n<3){ return 0;...

2020-03-07 22:19:14 138

原创 LeetCode不定时刷题——Balanced Binary Tree

Balanced Binary TreeGiven a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of ever...

2020-03-07 22:18:27 133

原创 LeetCode不定时刷题——Add Two Numbers

Add Two NumbersYou are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numb...

2020-03-07 22:17:50 116

原创 LeetCode不定时刷题——Peak Finder

Peak Finder问题在一个数组中找一个peak,使之大于他的邻居即可。可假设数组两端为负无穷。具体描述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 ...

2020-03-07 22:16:38 246

原创 剑指Offer之二维数组中的查找

二维数组中的查找题目描述在一个二维数组中(每个一维数组的长度相同),每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。解题思路对于这种问题,我们肯定需要找到一个点,往一个方向是递增的,往另一个方向是递减的,那么显然从二维数组的左下角开始,往右就是递增,往上就是递减的,找到这样一个点就很容易解题...

2020-03-07 22:14:02 102

原创 Java高并发秒杀项目之高并发优化

Java高并发秒杀高并发优化具体可以参考github获取系统时间不用优化,获取一次内存是需要10纳秒,所以获取一次系统时间是非常快的。redis后端缓存并发优化降低mysql的rowlock的持有时间利用存储过程降低行级锁占有时间大型系统架构项目总结...

2020-03-07 22:03:38 533

原创 Java高并发秒杀项目之Web层

Java高并发秒杀Web层具体可以参考githubRestful设计整合配置SpringMVC框架<web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation...

2020-03-07 21:53:53 164

原创 java高并发秒杀项目之Service层

Java高并发秒杀系统Service具体可以参考githubservice接口设计在org.seckill包下创建一个service包用于存放我们的Service接口和其实现类,创建一个exception包用于存放service层出现的异常例如重复秒杀商品异常、秒杀已关闭等异常,一个dto包作为传输层,dto和entity的区别在于:entity用于业务数据的封装,而dto用于完成web和s...

2020-03-07 21:50:41 862

原创 java高并发秒杀项目之Dao

Java高并发秒杀APi之业务分析与DAO层代码编写具体可以参考githubMaven创建项目seckillmvn archetype:generate -DgroupId=cn.codingxiaxw.seckill -DartifactId=seckill -Dpackage=cn.codingxiaxw.seckill -Dversion=1.0-SNAPSHOT -Darchetyp...

2020-03-07 21:49:08 206

原创 Redis基础知识记录

RedisNoSQL什么是NoSQLNoSQL= not only SQL非关系型的数据库为什么需要NoSQL高并发读写海量数据的高效率存储和访问高可扩展性和高可用性NoSQL数据库的四大分类NoSQL的特点易扩展灵活的数据模型大数据量,高性能高可用RedisRedis应用场景缓存任务队列应用排行榜网站访问统计数据过期处理分布式集群架构中的s...

2020-03-07 21:43:35 112

原创 shiro基础知识记录

ShiroShiroFilter的工作原理DelegatingFilterProxy 作用是自动到 Spring 容器查找字为 shiroFilter(filter-name)的 bean 并把所有 Filter 的操作委托给它。所以web.xml和spring 容器中的filter-name应该一样。URL匹配模式Ant 路径通配符支持 ?、*、**,注意通配符匹...

2020-03-07 20:42:44 163

原创 javascript基础知识记录

JavaScript基础知识使用的方法为window对象的,window对象可以省略form对象在文档中按数组进行存储,取form对象时,直接使用数组取值的方式,forms[n]...

2020-03-07 20:36:50 102

原创 Spring-SpringMVC-Mybatis整合记录

SSM-CRUD功能点• 1、分页• 2、数据校验• jquery前端校验+JSR303后端校验• 3、ajax• 4、Rest风格的URI;使用HTTP协议请求方式的动词,来表示对资 源的操作(GET(查询),POST(新增),PUT(修改),DELETE (删除))技术点• 基础框架-ssm(SpringMVC+Spring+MyBatis)• 数据库-MySQL• 前端框...

2020-03-07 20:32:48 139

原创 springmvc基础知识记录3

1.springmvc框架基础回顾2.包装类型pojo参数绑定2.1实现方法2.2页面参数和controller方法形参定义3.集合类型绑定3.1数组绑定<input type="button" value="批量删除" onclick="deleteItems()"/>function deleteItems() {document.itemsFo...

2020-03-07 20:29:22 218

原创 springmvc基础知识记录2

8.springmvc和mybatis整合8.1需求springmvc和mybatis整合8.2整合思路第一步:整合dao层mybatis和spring整合,通过spring管理mapper接口。使用mapper的扫描器自动扫描mapper接口在spring中注册第二步:整理service层通过Spring管理service接口使用配置方式将service接口配置在spring...

2020-03-07 20:20:11 189

原创 springmvc基础知识记录1

1.SpringMVC框架1.1什么是springmvcspringmvc是spring框架的一个模块,springmvc和spring无需通过中间整合层进行整合。springmvc是一个基于mvc的web框架1.2mvc在b/s系统下的应用mvc是一个设计模式,mvc在b/s系统下的应用:1.3springmvc框架2.入门程序2.1配置前端控制器2.2配置处理映射器...

2020-03-07 20:14:15 149

原创 spring基础知识记录3

基于aspectj的注解aop使用注解方式实现aop操作创建对象在spring核心配置文件中,开启aop操作在增强类上面使用注解完成aop操作Spring的jdbcTemplate操作spring框架一站式框架针对javaee三层,每一层都有解决技术在dao层,使用jdbcTemplatespring对不同持久化技术进行了封装jdbcT...

2020-03-07 20:08:03 132

原创 spring基础知识记录2

Spring的Bean 管理(注解)注解代码里面特殊标记,使用注解可以完成功能注解写法 @注解名称(属性名称=属性值)注解使用在类上面,方法上面,属性上面Spring注解开发准备导入jar包导入基本的jar包导入aop的jar包创建类,创建方法创建spring配置文件,引入约束做ioc基本功能,引入约束beans做spring的ioc注解开发,引...

2020-03-07 19:49:33 129

原创 Spring基础知识记录1

Spring概念spring是开源的轻量级的框架spring核心主要两部分:aop 面向切面编程,扩展功能不是修改源代码实现ioc 控制反转, 比如有一类,在类里有一个方法(不是静态方法),调用类里面的方法,创建类的对象,使用对象调用方法,创建类对象的过程,需要new出来对象把对象的创建不是通过new方式实现的,而是交给Spring配置创建类对象spring是一...

2020-03-07 19:41:25 103

原创 maven基础知识记录

Maven项目找jar包过程Maven的两大核心依赖管理:对jar包管理过程项目构建:项目在编码完成后,对项目进行编译、测试、打包、部署一系列的操作都通过命令来实现。而不需要借助IDEmaven程序安装前提:maven程序java开发,它的运行依赖jdk。Maven仓库Maven标准目录结构maven常用构建命令mvn -v:查看maven的版本。mvn c...

2020-03-07 19:33:31 147

李宏毅一天读懂深度学习

这是李宏毅老师的关于深度学习快速入门的文档,方便初学者快速入门深度学习

2019-03-10

空空如也

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

TA关注的人

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