E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
mycode
Leetcode - Reverse String
Mycode
:publicclassSolution{publicStringreverseString(Strings){if(s==null||s.length()==0){returns;}StringBuildersb
Richardo92
·
2020-04-08 04:44
Leetcode - Line Reflection
Mycode
:publicclassSolution{publicbooleanisReflected(int[][]points){if(points==null||points.length==0|
Richardo92
·
2020-04-07 08:55
Leetcode - Binary Tree Paths
Mycode
:importjava.util.ArrayList;importjava.util.List;/***Definitionforabinarytreenode.
Richardo92
·
2020-04-07 03:35
Leetcode - Majority Element
Mycode
:importjava.util.HashMap;publicclassSolution{publicintmajorityElement(int[]nums){if(nums==null|
Richardo92
·
2020-04-06 21:58
Leetcode - Linked List Cycle II
Mycode
:/***Definitionforsingly-linkedlist.
Richardo92
·
2020-04-06 13:02
Leetcode - String to Integer (atoi)
Question:
Mycode
:publicclassSolution{publicintmyAtoi(Stringstr){if(str==null||str.length()==0)return0;
Richardo92
·
2020-04-06 07:14
Leetcode - Increasing Triplet Subsequence
Mycode
:publicclassSolution{publicbooleanincreasingTriplet(int[]nums){intmin=Integer.MAX_VALUE,secondMin
Richardo92
·
2020-04-06 02:33
Leetcode - Largest BST Subtree
Mycode
:/***Definitionforabinarytreenode.
Richardo92
·
2020-04-05 08:32
MAC下安装SVN服务器详解
1、开启终端,创建代码仓库命令:svnadmincreate/Users/loujianwei/
MyCode
创建好后,在
MyCode
文件夹下面就可以看到以下文件Snip20161027_20.png2、
CoderLJW
·
2020-04-05 07:31
Leetcode - Ransom Note
Mycode
:publicclassSolution{publicbooleancanConstruct(StringransomNote,Stringmagazine){if(ransomNote==
Richardo92
·
2020-04-04 22:50
Leetcode - Logger Rate Limiter
Mycode
:importjava.util.concurrent.ConcurrentHashMap;publicclassLogger{ConcurrentHashMapmap=newConcurrentHashMap
Richardo92
·
2020-04-04 11:54
Leetcode - Minimum Depth of Binary Tree
finditsminimumdepth.Theminimumdepthisthenumberofnodesalongtheshortestpathfromtherootnodedowntothenearestleafnode.
Mycode
Richardo92
·
2020-04-04 05:23
Leetcode - Count of Range Sum
Mycode
:publicclassSolution{publicintcountRangeSum(int[]nums,intlower,intupper){if(nums==null||nums.length
Richardo92
·
2020-04-03 10:48
myCode
#include"misc.h"#include"data.h"#include#include#include#include#include#include#include#includeusingnamespacestd;classOrder{private:int_pid;int_quantity;int_expected_days;Region_region;double_date;pu
LonelyGod小黄老师
·
2020-04-03 07:11
Leetcode - Construct Binary Tree from Preorder and Inorder Traversal
Mycode
:/***Definitionforabinarytreenode.
Richardo92
·
2020-04-02 14:21
Leetcode - Create Maximum Number
Mycode
:publicclassSolution{publicint[]maxNumber(int[]nums1,int[]nums2,intk){if(nums1==null||nums2==null
Richardo92
·
2020-04-02 12:08
Mac搭建本地svn服务器
下面就开始配置svn:1、创建代码库创建一个仓库用来存储代码,在终端输入命令:sudomkdir-p/Users/ios[当前用户名]/svn/
mycode
创建一个文件夹sudosvnadmincreate
懒人09
·
2020-04-01 15:20
Leetcode - Binary Search Tree Iterator
Mycode
:importjava.util.ArrayList;/***Definitionforbinarytree*publicclassTreeNode{*intval;*TreeNodeleft
Richardo92
·
2020-04-01 08:44
Leetcode - Rotate Function
Mycode
:publicclassSolution{publicintmaxRotateFunction(int[]A){if(A==null||A.length==0){return0;}intsum
Richardo92
·
2020-04-01 03:01
Leetcode - Dungeon Game
Mycode
:publicclassSolution{publicintcalculateMinimumHP(int[][]dungeon){introw=dungeon.length;intcol=dungeon
Richardo92
·
2020-03-31 19:17
Leetcode - Word Break II
Mycode
:publicclassSolution{publicListwordBreak(Strings,SetwordDict){returnhelper(s,newHashMap>(),wordDict
Richardo92
·
2020-03-31 10:26
Leetcode - Sparse Matrix Multiplication
Mycode
:importjava.util.HashMap;importjava.util.Map;publicclassSolution{publicint[][]multiply(int[][]A
Richardo92
·
2020-03-30 18:28
Leetcode - Swap Nodes in Pairs
Mycode
:/***Definitionforsingly-linkedlist.
Richardo92
·
2020-03-30 11:00
Leetcode - Design Tic-Tac-Toe
Mycode
:publicclassTicTacToe{int[]rows;int[]cols;intdiag;intanti_diag;intn;/**Initializeyourdatastructurehere
Richardo92
·
2020-03-30 07:47
Leetcode - Find Median from Data Stream
Mycode
:publicclassMedianFinder{PriorityQueuebig=newPriorityQueue();PriorityQueuesmall=newPriorityQueue
Richardo92
·
2020-03-29 16:40
Leetcode - Substring with Concatenation of All Words
Mycode
:importjava.util.ArrayList;importjava.util.HashMap;importjava.util.List;publicclassSolution{publicListfindSubstring
Richardo92
·
2020-03-29 09:39
Leetcode - Expression Add Operators
Mycode
:importjava.util.List;publicclassSolution{publicListaddOperators(Stringnum,inttarget){Listret=newArrayList
Richardo92
·
2020-03-29 02:19
Mac自带 SVN 命令简洁操作
1.从本地导入代码到服务器(第一次初始化导入)在终端中输入svnimport/Users/apple/Documents/eclipse_workspace/weibosvn://localhost/
mycode
刘家村村长
·
2020-03-28 19:36
Leetcode - Reconstruct Itinerary
Mycode
:importjava.util.ArrayList;importjava.util.HashMap;importjava.util.List;publicclassSolution{privateHashMap
Richardo92
·
2020-03-28 17:14
UnicodeDecodeError, invalid continuation byte
当用pandas库读取.csv文件时,出现如下报错:
MyCode
:importpandasaspddf=pd.read_csv('C:\\Users\\登亮\\Desktop\\test.csv',encoding
wodeliang
·
2020-03-28 07:22
Leetcode - Number of Islands II
Mycode
:importjava.util.ArrayList;importjava.util.List;publicclassSolution{privateint[][]dir=newint[][
Richardo92
·
2020-03-28 02:58
Leetcode - Remove Duplicates from Sorted List II
Mycode
:/***Definitionforsingly-linkedlist.
Richardo92
·
2020-03-27 09:32
Leetcode - Different Ways to Add Parentheses
Mycode
:importjava.util.ArrayList;importjava.util.List;publicclassSolution{publicListdiffWaysToCompute
Richardo92
·
2020-03-26 21:12
Leetcode - Best Meeting Point
Mycode
:publicclassSolution{publicintminTotalDistance(int[][]grid){if(grid==null||grid.length==0||grid
Richardo92
·
2020-03-26 12:57
Leetcode - Summary Ranges
Mycode
:importjava.util.ArrayList;importjava.util.List;publicclassSolution{publicListsummaryRanges(int
Richardo92
·
2020-03-26 09:39
Leetcode - Is Subsequence
Mycode
:publicclassSolution{publicbooleanisSubsequence(Strings,Stringt){if(s==null||t==null){returnfalse
Richardo92
·
2020-03-26 02:14
Leetcode - reverse string under specific requirement
输入一个string,把里面每个单词翻转,例如"thisisatest",输出"tsetasisiht"并且题目保证了string里只有小写字母和空格,并且有k个单词的话一定只有k-1个空格
Mycode
Richardo92
·
2020-03-24 22:05
Leetcode - Guess Number Higher or Lower II
Mycode
:publicclassSolution{publicintgetMoneyAmount(intn){int[][]cache=newint[n+1][n+1];returnhelper(1
Richardo92
·
2020-03-24 16:54
Go 使用 GDB 调试
:gdbmyCode可是我运作出现如上的状况,之后一顿搜索后,如下:gdb-q-iex"setauto-loadsafe-path$GOHOME/src/runtime/runtime-gdb.py"
myCode
x_zhaohu
·
2020-03-23 22:08
Leetcode - Wildcard Matching
Mycode
:publicclassSolution{publicbooleanisMatch(Strings,Stringp){if(s==null||p==null){returnfalse;}intss
Richardo92
·
2020-03-22 22:58
Leetcode - Reverse Linked List
Question:Reverseasinglylinkedlist.
Mycode
/**iteration*Definitionforsingly-linkedlist.
Richardo92
·
2020-03-22 18:11
Leetcode - Shuffle an Array
Mycode
:publicclassSolution{privateint[]nums;privateRandomr;publicSolution(int[]nums){this.nums=nums;r
Richardo92
·
2020-03-22 17:07
Leetcode - Convert a Number to Hexadecimal
Mycode
:publicclassSolution{publicStringtoHex(intnum){if(num==0){return"0";}String[]strs=newString[]{"
Richardo92
·
2020-03-22 04:34
Leetcode - Maximum Subarray
Mycode
:publicclassSolution{publicintmaxSubArray(int[]nums){if(nums==null||nums.length==0)return0;elseif
Richardo92
·
2020-03-21 21:13
Leetcode - Binary Watch
Mycode
:importjava.util.ArrayList;importjava.util.List;publicclassSolution{int[]minute=newint[]{1,2,4,8,16,32
Richardo92
·
2020-03-21 20:25
Leetcode - Moving Average from Data Stream
Mycode
:publicclassMovingAverage{Queueq=newLinkedList();intsize=0;intsum=0;/**Initializeyourdatastructurehere
Richardo92
·
2020-03-21 19:49
Leetcode - Basic Calculator II
Mycode
:publicclassSolution{publicintcalculate(Strings){if(s==null||s.length()==0){return-1;}Stackst=newStack
Richardo92
·
2020-03-21 17:04
Leetcode - Insert Delete GetRandom O(1)
Mycode
:importjava.util.
Richardo92
·
2020-03-21 05:46
Leetcode - Paint House II
Mycode
:publicclassSolution{publicintminCostII(int[][]costs){if(costs==null||costs.length==0||costs[0]
Richardo92
·
2020-03-20 23:52
Leetcode - Remove Duplicates from Sorted Array II
Mycode
:publicclassSolution{publicintremoveDuplicates(int[]nums){if(nums==null||nums.length==0)return0
Richardo92
·
2020-03-20 05:32
上一页
2
3
4
5
6
7
8
9
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他