- 博客(41)
- 收藏
- 关注
转载 LeetCode Notes_#989 Add To Array-Form Integer(Java)
LeetCode Notes_#989 Add To Array-Form Integer(Java)LeetCodeContents思路1:数组转换为数字再相加遇到的问题思路2:按照每一位的顺序相加思路 思路1:数组转换为数字再相加先把输入的A数组转换为数字,然后加上K,取出结果中的每一位,组成一个List.代码如下:class Solution { p...
2019-09-11 19:02:00
188
转载 开源项目管理系统Collabtive搭建及调试
开源项目管理系统Collabtive搭建及调试Collabtive项目管理Contents环境要求安装步骤遇到的问题参考资料最近在实验室的服务器上搭建了一个Collabtive项目管理系统,本文记录搭建过程及遇到的问题。 环境要求以下是我的环境,可以成功安装,具体的环境要求可以在collabtive源码文件夹里的README文件里看到。比较简单的办法是直接安装...
2019-07-23 20:25:00
972
转载 Nodejs/Jquery/Bootstrap搭建简单的web服务
Nodejs/Jquery/Bootstrap搭建简单的web服务Jquery前端BootstrapNodejsContents整体思路跨域访问问题Jquery.post()回调函数不执行问题总结最近想给毕设加入一个前端界面来调用后台的一些功能,这样展示性更好。我使用BootStrap,Jquery写了一个很简陋的前端界面。服务器端使用Node.js express...
2019-04-19 10:31:00
558
转载 搭建区块链浏览器——基于hyperledger fabric 1.0,MySQL容器
搭建区块链浏览器——基于hyperledger fabric 1.0,MySQL容器区块链hyperledger fabric浏览器MySQL dockerContents环境要求分支选择克隆仓库数据库搭建修改配置文件运行服务附录:我的配置文件区块链浏览器是hyperledger官方项目,能够可视化的查看区块链的详细信息,包括区块信息/详情,交易信息/详情,节点信息...
2019-04-12 11:17:00
461
转载 LeetCode Notes_#206 Reverse Linked List(C++,Python)
LeetCode Notes_#206 Reverse Linked List(C++,Python)LeetCode Linked ListContents题目思路思考解答C++Python 题目Reverse a singly linked list.Example:Input: 1->2->3->4->5->NULLOut...
2019-01-10 18:39:00
208
转载 LeetCode Notes_#92 Reverse Linked List II(C++,Python)
LeetCode Notes_#92 Reverse Linked List II(C++,Python)LeetCodeContents题目思路和解答思路解答C++Python 题目Reverse a linked list from position m to n. Do it in one-pass.Note: 1 ≤ m ≤ n ≤ length of ...
2019-01-10 18:34:00
104
转载 LeetCode Notes_#17 Letter Combinations of a Phone Number
LeetCode Notes_#17 Letter Combinations of a Phone NumberLeetCodeContents题目思路和解答思路解答 题目Given a string containing digits from 2-9 inclusive, return all possible letter combinations that...
2018-11-20 21:52:00
120
转载 LeetCode Notes_#18 4Sum
LeetCode Notes_#18 4SumLeetCodeContents题目思路和解答思路解答 题目Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = targe...
2018-11-15 17:33:00
448
转载 LeetCode Notes_#16 3Sum Cloest
LeetCode Notes_#16 3Sum CloestLeetCodeContents题目思路和解答思路解答 题目Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target...
2018-11-14 20:21:00
106
转载 LeetCode Notes_#15 3Sum
LeetCode Notes_#15 3SumLeetCodeContents题目思路和解答思路解答 题目Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the arr...
2018-11-08 20:16:00
118
转载 LeetCode Notes_#11 Container with Most Water
LeetCode Notes_#11 Container with Most WaterLeetCodeContents题目思路和解答思路解答需要注意的点 题目Given n non-negative integers a1, a2, ..., an , where each represents a point at coordinate (i, ai). n ...
2018-11-08 16:42:00
123
转载 LeetCode Notes_#58 Length of Last Word
LeetCode Notes_#58 Length of Last WordLeetCodeContents题目思路和解答思路解答 题目Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last w...
2018-10-31 10:10:00
167
转载 Python的四种常见数据结构比较
Python的四种常见数据结构比较PythonlisttuplesetdictContents本质上的区别语法上的比较 本质上的区别最重要的区别在于是否可变,是否有序这两个维度,可以分成4个象限,如下图比较 语法上的比较listtupledictset创建a=[element1,element2,......
2018-10-30 14:39:00
573
转载 LeetCode Notes_#53 Maximum Subarray
LeetCode Notes_#53 Maximum SubarrayLeetCodeContents题目思路和解答思路解答需要注意的点 题目Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest...
2018-10-30 14:33:00
111
转载 LeetCode Notes_#38 Count and Say
LeetCode Notes_#38 Count and SayLeetCodeContents题目思路和解答题意思路解答总结 题目The count-and-say sequence is the sequence of integers with the first five terms as following:1.12.113.214.12115...
2018-10-29 19:59:00
117
转载 LeetCode Notes_#6 Zigzag Conversion
LeetCode Notes_#6 Zigzag ConversionLeetCodeContents题目思路和解答思路解答要注意的一些点参考 题目The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want...
2018-10-26 11:58:00
112
转载 LeetCode Notes_#5 Longest Palindromic Substring
LeetCode Notes_#5 Longest Palindromic SubstringLeetCodeContents题目思路和解答思路解答 题目Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s...
2018-10-25 17:35:00
104
转载 LeetCode Notes_#3 Longest Substring Without Repeating Characters
LeetCode Notes_#3 Longest Substring Without Repeating CharactersLeetCodeContents题目思路和解答思路解答高票解答 题目Given a string, find the length of the longest substring without repeating characters...
2018-10-24 16:09:00
101
转载 LeetCode Notes_#35 Search Insert Position
LeetCode Notes_#35 Search Insert PositionLeetCodeContents题目思路和解答思路解答高票答案要注意的点 题目Given a sorted array and a target value, return the index if the target is found. If not, return the in...
2018-10-23 20:24:00
100
转载 LeetCode Notes_#28 Implement strStr()
LeetCode Notes_#28 Implement strStr()LeetCodeContents题目思路及解答思路解答需要注意的点 题目Implement strStr().Return the index of the first occurrence of needle in haystack, or -1 if needle is not par...
2018-10-23 15:37:00
102
转载 LeetCode Notes_#27 Remove Element
LeetCode Notes_#27 Remove ElementContents题目思路和解答思路解答 题目Given an array nums and a value val, remove all instances of that value in-place and return the new length.Do not allocate extra...
2018-10-23 12:01:00
103
转载 LeetCode Notes_#26 Remove Duplicates from Sorted Array
LeetCode Notes_#26 Remove Duplicates from Sorted ArrayLeetCodeContents题目思路及解答思路解答要注意的几点 题目Given a sorted array nums, remove the duplicates in-place such that each element appear only ...
2018-10-23 11:08:00
131
转载 LeetCode Notes_#21 Merge Two Sorted Lists
LeetCode Notes_#21 Merge Two Sorted ListsLeetCodeContents题目思路和解答思路解答 题目Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the ...
2018-10-22 21:24:00
119
转载 LeetCode Notes_#20 Valid Parentheses
LeetCode Notes_#20 Valid ParenthesesLeetCodeContents题目思路和解答思路解答 题目Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid...
2018-10-22 20:07:00
103
转载 LeetCode Notes_#14 Longest Common Prefix
LeetCode Notes_#14 Longest Common PrefixLeetCodeContentsProblemSolution思路解答高票答案 ProblemWrite a function to find the longest common prefix string amongst an array of strings.If there ...
2018-10-19 11:54:00
103
转载 牛客21天刷题_day#3
牛客21天刷题_day#3牛客Contents1.好多鱼题目思路和解答2.表达式求值题目解答 1.好多鱼 题目牛牛有一个鱼缸。鱼缸里面已经有n条鱼,每条鱼的大小为fishSize[i] (1 ≤ i ≤ n,均为正整数),牛牛现在想把新捕捉的鱼放入鱼缸。鱼缸内存在着大鱼吃小鱼的定律。经过观察,牛牛发现一条鱼A的大小为另外一条鱼B大小的2倍到10倍(包括2...
2018-10-18 19:51:00
125
转载 牛客21天刷题_day#2
牛客21天刷题_day#2牛客Contents1.禁忌雷炎题目思路和解答注意range的语法关于python的标准输入输出2.小易喜欢的单词题目思路和解答Python跳出两层循环 1.禁忌雷炎 题目圆的半径平方为S,求坐标系里在这个圆周上面的整数坐标点有几个输入253输出120 思路和解答首先,四个象限对称,所以直接算出一个...
2018-10-17 19:14:00
110
转载 牛客21天刷题_day#1
牛客21天刷题_day#1牛客Contents1.对称的二叉树解答2.下厨房 1.对称的二叉树请实现一个函数,用来判断一颗二叉树是不是对称的。注意,如果一个二叉树同此二叉树的镜像是同样的,定义其为对称的。 解答# -*- coding:utf-8 -*-# class TreeNode:# def __init__(self, x):# ...
2018-10-17 10:31:00
141
转载 LeetCode Notes_#12 Integer to Roman
LeetCode Notes_#12 Integer to RomanLeetCodeContentsProblemSolution思路代码 ProblemRoman numerals are represented by seven different symbols: I, V, X, L, C, D and M.Symbol ValueI ...
2018-10-07 13:39:00
81
转载 LeetCode Notes_#9 Palindrome Number(包含#7 Reverse Integer)
LeetCode Notes_#9 Palindrome Number(包含#7 Reverse Integer)LeetCodeContentsProblemSolution1.转换成字符串处理2.初等运算求反转后的数字3.其他思路相关的Python知识 Problem...
2018-10-06 18:53:00
140
转载 LeetCode Notes_#13 Roman to Integer
LeetCode Notes_#13 Roman to IntegerLeetCodeContentsProblemSolution思路1. 字符串划分2. 字母转化成数字代码记录一下几个开始被我忽视的问题另一个很好的思路 ProblemRoman numerals are represented by seven different symbols: I, V,...
2018-10-05 16:56:00
123
转载 LeetCode记录
日期题目难度笔记序号1810021.two sumeasy#111810032.add two numbersmedium#221810047.Reverse...
2018-10-04 21:44:00
67
转载 Leetcode Notes_#2 Add Two Numbers
Leetcode Notes_#2 Add Two NumbersLeetCodeContentsProblemSolution相关Python知识 ProblemYou are given two non-empty linked lists represent...
2018-10-04 20:55:00
93
转载 LeetCode Notes_#1 Two Sum
LeetCode Notes_#1 Two SumLeetCodecontentsProblemSolutions1. 暴力法2. 两遍循环哈希表法3. 一遍循环哈希表法 ProblemGiven an array of integers, return indices of the two numbers such that they add up to a ...
2018-10-04 20:54:00
118
转载 博客园Markdown排版技巧
最近看很多别人的博客,排版什么的都特别漂亮,但是又感觉写博客时花太多时间排版不是很必要.希望将注意力更多的放到写作内容上面.如何更好更快地排版呢?可以看看我发现的一些技巧和工具. 目录需求分析工具选择公式编辑页内跳转引用图片及修改图片大小、格式笔记快速排版发布参考资料需求分析1. 文字格式文字需要支持简单的格式变化,比如加粗,斜体,引用,代码块.2. 公式...
2018-01-30 12:59:00
856
转载 2017读书记录
今年被各种课程折磨的很惨,所以去年说好要读的书,也没有读多少.读的最多的是小说,还有一些别的杂七杂八的书,以及一些看到一半没看完的.忙里偷闲在课间看了一些,假期看了一些.一年结束了,记录一下.顺便安利一个网站慕知,毕竟用了人家的功能Orz(下面的图就是用这个网站做的),是我校一个创新项目,觉得体验不错.就这样啦,18年要加油读书↖(^ω^)↗转载于:https://w...
2017-12-30 21:31:00
82
转载 工具推荐——Snipaste
发现了一款极方便的截图软件(准确的说是截图+贴图,就跟名字一样snip+paste),安利一波这个截图软件好在哪里?为什么不用windows自带的呢?最特别的贴图功能:也就是把图片贴在屏幕上,就好像我们用便利贴贴在黑板上一样。当你研究一个什么东西的时候,可能会查很多网页,或者一些文档,这个过程中就免不了一个问题——我必须在这么多的界面切来切去,甚至有时候我们会找不到在哪。...
2017-12-21 22:15:00
200
转载 U盘快捷方式病毒
最近做通原实验,发现学校的电脑有病毒...话说这还是我第一次遇见这种病毒,昨天打开U盘,发现很多文件夹都变成了快捷方式,并且不能打开,报错内容是:快捷方式存在问题...经过一番查询,大概弄清楚了这个病毒的机制,并找到了解决方案。它是如何工作的?说起来也挺简单。这是一个visual basic脚本程序,当打开U盘时自动运行,然后他就会做一些不太好的操作,emmm...接下来具体的...
2017-12-14 22:18:00
1011
转载 微机原理软件实验——问题记录
1. 堆栈不平衡:在调用子程序的时候,必须考虑到子程序的堆栈平衡问题。这要从call和ret的机制说起。call:将当前语句的CS和IP压入堆栈ret:pop栈顶的CS和IP如果子程序使用了堆栈,那么一定要保证堆栈平衡,也就是说,调用之前堆栈是啥样的,调用之后就该是啥样的。更直白的说,子程序中push多少次,相应的就要pop多少次,否则ret弹出的地址不是原来存入的地址,就会发...
2017-12-09 12:32:00
530
转载 《这个杀手不太冷》
通原期中考试总算是结束了,打算看一部电影开心开心。根据豆瓣上的评分,看了《这个杀手不太冷》。 这是一部法国电影,原名叫做《Leon》,因为里面的主角,所谓“杀手”就叫Leon,Leon是一个声音富有磁性的中年大叔,利落,镇静,绝对的专业,作为杀手,它从没失手过。也许你会以为这种杀手特别冷漠,特别凶残,但他并不是,至少在工作之外的时间不是这样的,除去杀手这份工作之外,他过得就像一个普...
2017-12-02 23:50:00
138
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人