自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(25)
  • 资源 (1)
  • 收藏
  • 关注

原创 [LeetCode]Binary Search Tree Iterator@Python

Binary Search Tree IteratorImplement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Calling next() will return the next smallest number i...

2019-05-30 21:37:01 96

原创 [LeetCode]Evaluate Reverse Polish Notation@Python

Evaluate Reverse Polish NotationEvaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand may be an integer or another expression.Note:...

2019-05-29 21:12:24 164

原创 基于Java的锁、多线程、线程池并发编程

背景操作系统所有计算机资源是被一个程序独占的,称为裸机能够协调程序排队的简单批处理系统当程序遇到IO之类的阻塞时,处理器转而处理其他程序,称作多道批处理系统给每个程序都分配一点处理器时间去轮流执行,每个程序分配到的执行时间就叫做时间片,这个过程也叫做分时处理。操作系统负责管理时间片具体设置为多大,处理器怎么切换各个程序的执行4核、8核即多个处理器进程进程的两个特点:资源所有权...

2019-05-29 16:30:59 1431

原创 [LeetCode]Binary Tree Postorder Traversale@Python

Binary Tree Postorder TraversalGiven a binary tree, return the postorder traversal of its nodes’ values.ExampleInput: [1,null,2,3]Output: [3,2,1]Solution#Recursivelyclass Solution: def ...

2019-05-28 23:34:21 75

原创 [LeetCode]Binary Tree Preorder Traversal@Python

Binary Tree Preorder TraversalGiven a binary tree, return the preorder traversal of its nodes’ values.ExampleInput: [1,null,2,3]Output: [1,2,3]Solution# Recursivelyclass Solution: def p...

2019-05-27 22:09:42 156

原创 [LeetCode]Binary Tree Zigzag Level Order Traversal@Python

Binary Tree Zigzag Level Order TraversalGiven a binary tree, return the zigzag level order traversal of its nodes’ values. (ie, from left to right, then right to left for the next level and alternat...

2019-05-26 22:48:35 172 1

原创 Binary Tree Inorder Traversal

Binary Tree Inorder TraversalGiven a binary tree, return the inorder traversal of its nodes’ values.ExampleInput: [1,null,2,3]Output: [1,3,2]Solution# recursivelyclass Solution: def ino...

2019-05-23 23:59:56 59

原创 [LeetCode]Backspace String Compare@Python

Backspace String CompareGiven two strings S and T, return if they are equal when both are typed into empty text editors. # means a backspace character.ExampleInput: S = “ab#c”, T = “ad#c”Output...

2019-05-23 00:57:56 162

原创 [LeetCode]Simplify Path@Python

Simplify PathGiven an absolute path for a file (Unix-style), simplify it. Or in other words, convert it to the canonical path.In a UNIX-style file system, a period . refers to the current directory...

2019-05-22 10:41:24 97

原创 [LeetCode]Last Stone Weight@Python

Last Stone WeightWe have a collection of rocks, each rock has a positive integer weight.Each turn, we choose the two heaviest rocks and smash them together. Suppose the stones have weights x and y...

2019-05-22 09:33:11 290

原创 K Closest Points to Origin

K Closest Points to OriginWe have a list of points on the plane. Find the K closest points to the origin (0, 0).(Here, the distance between two points on a plane is the Euclidean distance.)You ma...

2019-05-19 21:21:22 163

原创 [LeetCode]Cheapest Flights Within K Stops@Python

Cheapest Flights Within K StopsThere are n cities connected by m flights. Each fight starts from city u and arrives at v with a price w.Now given all the cities and flights, together with starting ...

2019-05-19 21:11:28 138

原创 kylin大数据平台搭建文档

文章目录前期准备包下载按顺序安装一.Hadoop二. Zookeeper前期准备/etc/sudoers配置管理用户root权限关闭防火墙/etc/hosts 配置ip与主机名将其余节点的公钥拷贝到仓库文件并授权,scp分发到各节点,配置各节点直接ssh免密登陆安装ntp,同步集群机器时间(或者跑个shell脚本,同步为master时间)下载jdk包并在/etc/profile中配...

2019-05-16 22:50:23 669

原创 [LeetCode]Network Delay Time@Python

Network Delay TimeThere are N network nodes, labelled 1 to N.Given times, a list of travel times as directed edges times[i] = (u, v, w), where u is the source node, v is the target node, and w is t...

2019-05-16 00:13:28 137

原创 [LeetCode]Top K Frequent Words@Python

Top K Frequent WordsGiven a non-empty list of words, return the k most frequent elements.Your answer should be sorted by frequency from highest to lowest. If two words have the same frequency, then...

2019-05-14 23:27:36 110

原创 [LeetCode]Split Array into Consecutive Subsequences@Python

Split Array into Consecutive SubsequencesYou are given an integer array sorted in ascending order (may contain duplicates), you need to split them into several subsequences, where each subsequences ...

2019-05-14 10:08:56 101

原创 [LeetCode]Sort Characters By Frequency@Python

Sort Characters By FrequencyGiven a string, sort it in decreasing order based on the frequency of characters.ExampleInput:“tree”Output:“eert”Explanation:‘e’ appears twice while ‘r’ and ...

2019-05-12 23:20:32 133

原创 [LeetCode]Symmetric Tree@Python

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/ \ / 3 4 4 3...

2019-05-09 21:17:20 86

原创 [LeetCode]Find K Pairs with Smallest Sums@Python

Find K Pairs with Smallest SumsYou are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k.Define a pair (u,v) which consists of one element from the first array and...

2019-05-09 06:32:25 138

原创 [LeetCode]Sort Array By Parity@Python

Sort Array By ParityGiven an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A.You may return any answer array that s...

2019-05-07 23:36:31 87

转载 西方哲学史人物学说时间线

以上,古希腊罗马哲学包括自然哲学、形而上学和伦理哲学三个阶段,为西方哲学的理性思辨和形而上学打下了传统根基。 它提出了逻辑、存在、实体等成为西方哲学的经典命题,而柏拉图和亚里士多德关于共相性质的争论开启了中世纪基督教哲学关于唯名论和实在论的争论。 以上,西罗马帝国崩溃后,基督...

2019-05-07 02:35:40 4774

原创 [LeetCode]Top K Frequent Elements@Python

Top K Frequent ElementsGiven a non-empty array of integers, return the k most frequent elements.ExampleInput: nums = [1,1,1,2,2,3], k = 2Output: [1,2]Solutionclass Solution: def topKFreq...

2019-05-06 22:15:31 131

原创 [LeetCode]Kth Largest Element in an Array@Python

Kth Largest Element in an ArrayFind the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element.ExampleInput: [3,2,1,5...

2019-05-05 11:20:13 150

原创 [LeetCode]Kth Largest Element in a Stream@Python

Kth Largest Element in a StreamDesign a class to find the kth largest element in a stream. Note that it is the kth largest element in the sorted order, not the kth distinct element.Your KthLargest ...

2019-05-05 10:55:03 219

原创 深入研究mysql

一.安装与认识部分命令为链接文件不经外部网络的unix域套接字 TCP https://blog.csdn.net/qq_38950316/article/details/81087809连接管理:缓存线程、SSL安全套接字解析优化:查询缓存(任何不同都会导致无法命中;查询里有任何系统函数、表、用户自定义变量,将不会缓存;表结构或数据被修改,任何缓存立即失效)语法解析 查询优化(修改...

2019-05-05 09:12:01 774

spring security acl 3.1.4 REALEASE.jar

spring security 3.1.4的release包 需要的可以拿走

2015-12-11

空空如也

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

TA关注的人

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