摘要:
[TOC] 概述 存储器分类 主要分类如下图: 存储器层次结构 存储器有三大指标:容量,速度,价格; 三者的关系可以用下图表示: 图中由上至下,价位越来越低,速度越来越慢,容量越来越大; 存储器层次结构主要体现在缓存 主存,主存 辅存上,其结构如下: 缓存 主存主要解决CPU和主存速度不匹配问题,由 阅读全文
posted @ 2019-07-18 18:29
AI,me
阅读(383)
评论(0)
推荐(0)
摘要:
redis分布式锁实现 整个starter工程目录如下: pom文件 分布式锁顶级接口DistributedLock 分布式锁抽象类AbstractDistributedLock redis分布式锁实现 redis 基本操作 redis序列化操作 缓存管理属性设置 redis 配置类 spring. 阅读全文
posted @ 2019-07-18 17:31
AI,me
阅读(223)
评论(0)
推荐(0)
摘要:
高性能方法级幂等性 1.幂等性 就是用户对于同一操作发起的一次请求或者多次请求的结果是一致的,不会因为多次点击而产生了副作用。举个最简单的例子,那就是支付,用户购买商品使用约支付,支付扣款成功,但是返回结果的时候网络异常,此时钱已经扣了,用户再次点击按钮,此时会进行第二次扣款,返回结果 阅读全文
posted @ 2019-07-18 15:52
AI,me
阅读(356)
评论(0)
推荐(0)
摘要:
[TOC] RegularExpressionMatching 问题描述 Implement regular expression matching with support for '.' and ' '. 实例 '.' Matches any single character. ' ' Matc 阅读全文
posted @ 2019-07-18 14:21
AI,me
阅读(65)
评论(0)
推荐(0)
摘要:
[TOC] PalindromeNumber 问题描述 Determine whether an integer is a palindrome. Do this without extra space. Could negative integers be palindromes? (ie, 1) 阅读全文
posted @ 2019-07-18 14:16
AI,me
阅读(66)
评论(0)
推荐(0)
摘要:
[TOC] StringtoInteger(atoi) 问题描述 Implement atoi to convert a string to an integer. Requirements for atoi: The function first discards as many whitespa 阅读全文
posted @ 2019-07-18 14:10
AI,me
阅读(77)
评论(0)
推荐(0)
摘要:
[TOC] ReverseInteger 问题描述 Reverse digits of an integer. 实例 Example1: x = 123, return 321 Example2: x = 123, return 321 实现代码 阅读全文
posted @ 2019-07-18 13:56
AI,me
阅读(73)
评论(0)
推荐(0)
摘要:
[TOC] ZigZagConversion 问题描述 The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display t 阅读全文
posted @ 2019-07-18 13:48
AI,me
阅读(70)
评论(0)
推荐(0)
摘要:
[TOC] LongestPalindromicSubstring 问题描述 Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1 阅读全文
posted @ 2019-07-18 11:19
AI,me
阅读(52)
评论(0)
推荐(0)
摘要:
[TOC] MedianofTwoSortedArrays 问题描述 There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. 阅读全文
posted @ 2019-07-18 11:04
AI,me
阅读(58)
评论(0)
推荐(0)
摘要:
[TOC] LSWRC 问题描述 Given a string, find the length of the longest substring without repeating characters. 实例 Examples: Given "abcabcbb", the answer is " 阅读全文
posted @ 2019-07-18 10:46
AI,me
阅读(68)
评论(0)
推荐(0)
摘要:
[TOC] AddTwoNumbers 问题描述 You are given two non empty linked lists representing two non negative integers. The digits are stored in reverse order and e 阅读全文
posted @ 2019-07-18 10:33
AI,me
阅读(128)
评论(0)
推荐(0)
摘要:
[TOC] TwoSum 问题描述 Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each i 阅读全文
posted @ 2019-07-18 10:13
AI,me
阅读(84)
评论(0)
推荐(0)

浙公网安备 33010602011771号