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 - N-Queens II
Mycode
:publicclassSolution{privateintcounter=0;publicinttotalNQueens(intn){if(n=n){counter++;return;}
Richardo92
·
2020-02-20 05:00
Leetcode - Max Points on a Line
Mycode
:/***Definitionforapoint.
Richardo92
·
2020-02-19 15:11
Leetcode - Range Sum Query - Mutable
Mycode
:publicclassNumArray{privateint[]nums;privateint[]st;publicNumArray(int[]nums){if(nums==null||nums.length
Richardo92
·
2020-02-18 18:24
Leetcode - Restore IP Addresses
Mycode
:importjava.util.ArrayList;importjava.util.List;publicclassSolution{publicListrestoreIpAddresses
Richardo92
·
2020-02-15 18:38
Leetcode - Contains Duplicate III
Mycode
:publicclassSolution{publicbooleancontainsNearbyAlmostDuplicate(int[]nums,intk,intt){if(kmap=newHashMap
Richardo92
·
2020-02-15 17:54
SVN + MAC
本身已经自带了svn,所以我们只需要简单的配置一下就可以进行使用了一下是配置的步骤*在User/roy/下创建一个SVN文件夹*打开终端,执行命令svnadmincreate/Users/roy/svn/
mycode
sttech
·
2020-02-13 12:59
Leetcode - Permutation Sequence
Mycode
:publicclassSolution{publicStringgetPermutation(intn,intk){if(n0){total*=temp;temp--;}if(k>total
Richardo92
·
2020-02-11 23:51
Leetcode - Remove Duplicate Letters
Mycode
:publicclassSolution{publicStringremoveDuplicateLetters(Strings){if(s==null||s.length()==0)returns
Richardo92
·
2020-02-10 07:22
Leetcode - Subsets II
Mycode
:importjava.util.ArrayList;importjava.util.Arrays;importjava.util.List;publicclassSolution{publicList
Richardo92
·
2020-02-09 04:12
SVN基本使用方法
创建代码库在/User/apple目录下新建SVN目录$svnadmincreate/Users/apple/svn/
mycode
(生成svn本地仓库)配置用户权限修改默认文件内容1、/svn/
mycode
不戴帽子的猫
·
2020-02-08 18:03
Leetcode - Shortest Palindrome
Mycode
:publicclassSolution{publicStringshortestPalindrome(Strings){if(s==null||s.length()==0){returns
Richardo92
·
2020-02-06 17:06
Linux源码安装最新版Privoxy
源码安装1.下载安装包wgethttps://GuoFlight.Github.io/
Mycode
/Linux/software_install/privoxy-3.0.28-stable-src.tar.gz2
lihao_李浩
·
2020-02-06 15:17
Leetcode - Construct Binary Tree from Inorder and Postorder Traversal
Mycode
:/***D
Richardo92
·
2020-02-06 05:13
Leetcode - Rearrange String k Distance Apart
Mycode
:publicclassSolution{publicStringrearrangeString(Stringstr,intk){if(str==null){return"";}elseif
Richardo92
·
2020-02-05 23:00
Leetcode - N-Queens
Mycode
:importjava.util.ArrayList;importjava.util.List;publicclassSolution{publicList>solveNQueens(intn
Richardo92
·
2020-02-05 13:38
寒假第七天-sbt安装失败解决
后来把spark版本换成了2.1.0的版本后在安装sbt就安装成功了,然后试了一下教程下面的例子,成功了,心态差点爆炸catword.txt查看文本内容加载本地文件cd/usr/local/spark/
mycode
张利杰j
·
2020-02-01 19:00
Leetcode - Delete Node in a Linked List
Mycode
:/***Definitionforsingly-linkedlist.
Richardo92
·
2020-02-01 17:09
写个sh脚本批处理python脚本
py#-*-coding:UTF-8-*-print'测试2运行'foriinrange(6,10):printiprint'测试2结束'run.sh是我写的批处理脚本:该脚本路径:/home/ZPJ/
mycode
Babyzpj
·
2020-02-01 03:55
Leetcode - First Missing Positive
Mycode
:publicclassSolution{publicintfirstMissingPositive(int[]nums){if(nums==null||nums.length==0){return1
Richardo92
·
2020-01-08 09:57
Leetcode - Binary Tree Preorder Traversal
Mycode
:importjava.util.ArrayList;importjava.util.List;/***Definitionforabinarytreenode.
Richardo92
·
2020-01-07 12:00
Leetcode - Range Addition
Mycode
:publicclassSolution{publicint[]getModifiedArray(intlength,int[][]updates){if(length<=0){returnnull
Richardo92
·
2020-01-05 04:41
Leetcode - Excel Sheet Column Title
returnitscorrespondingcolumntitleasappearinanExcelsheet.Forexample:1->A2->B3->C...26->Z27->AA28->AB**
Mycode
Richardo92
·
2020-01-04 08:19
Leetcode - Generalized Abbreviation
Mycode
:publicclassSolution{publicListgenerateAbbreviations(Stringword){Listret=newArrayList();if(word
Richardo92
·
2020-01-03 20:18
Leetcode - Inorder Successor in BST
Mycode
:/***Definitionforabinarytreenode.
Richardo92
·
2020-01-03 11:35
Leetcode - Palindrome Permutation II
Mycode
:publicclassSolution{publicListgeneratePalindromes(Strings){Listret=newArrayList();if(s==null||
Richardo92
·
2020-01-02 03:39
Leetcode - Median of Two Sorted Arrays
**
Mycode
:publicclassSolution{publicdoublefindMed
Richardo92
·
2019-12-31 06:41
Leetcode - Word Pattern
Mycode
:importjava.util.HashMap;importjava.util.HashSet;publicclassSolution{publicbooleanwordPattern(Stringpattern
Richardo92
·
2019-12-31 05:07
Mac上本地搭建svn,报错没有权限问题
问题:按照网上的教程搭建本地svn,一步步过来都成功了,但是上传项目时报错:Description:Can'topenfile'/Users/用户名xx/svn/
mycode
/db/txn-current-lock
zxFlyer
·
2019-12-30 09:35
Leetcode - Single Number II
Mycode
:publicclassSolution{publicintsingleNumber(int[]nums){if(nums==null||nums.length==0)return0;int
Richardo92
·
2019-12-29 10:46
Leetcode - Validate Binary Search Tree
Mycode
:/***Definitionforabinarytreenode.
Richardo92
·
2019-12-29 07:42
Leetcode - Find K Pairs with Smallest Sums
Mycode
:importjava.util.ArrayList;importjava.util.Collections;importjava.util.Comparator;importjava.util.List
Richardo92
·
2019-12-28 08:22
Interview Question - remove invalid parentheses
难度低于RemoveInvalidParentheseshttp://www.jianshu.com/p/107a8e166351
Mycode
:importjava.util.ArrayList;importjava.util.HashSet
Richardo92
·
2019-12-28 01:54
Leetcode - Find the Difference
Mycode
:publicclassSolution{publiccharfindTheDifference(Strings,Stringt){char[]c1=s.toCharArray();char
Richardo92
·
2019-12-27 16:23
Leetcode - Paint House
Mycode
:publicclassSolution{publicintminCost(int[][]costs){if(costs==null||costs.length==0||costs[0].length
Richardo92
·
2019-12-27 08:04
Leetcode - Coin Change
Mycode
:publicclassSolution{privateintmin=-1;publicintcoinChange(int[]coins,intamount){if(coins==null|
Richardo92
·
2019-12-21 13:01
21. Merge Two Sorted Lists
Mergetwosortedlinkedlistsandreturnitasanewlist.Thenewlistshouldbemadebysplicingtogetherthenodesofthefirsttwolists.
Mycode
Icytail
·
2019-12-21 08:24
Leetcode - Word Ladder II
Mycode
:publicclassSolution{privateclasswordNode{Strings;intstep;wordNodepre;wordNode(Strings,intstep,
Richardo92
·
2019-12-21 03:19
Leetcode - Bulb Switcher
Mycode
:publicclassSolution{publicintbulbSwitch(intn){return(int)Math.sqrt(n);}}reference:https://discuss.leetcode.com
Richardo92
·
2019-12-18 00:30
Leetcode - Flip Game
Mycode
:publicclassSolution{publicListgeneratePossibleNextMoves(Strings){Listret=newArrayList();if(s==
Richardo92
·
2019-12-15 17:54
Leetcode - Largest Divisible Subset
Mycode
:importjava.util.ArrayList;importjava.util.Arrays;importjava.util.HashMap;importjava.util.List;
Richardo92
·
2019-12-14 19:49
Leetcode - Strobogrammatic Number III
Mycode
:publicclassSolution{privateintcounter=0;publicintstrobogrammaticInRange(Stringlow,Stringhigh){
Richardo92
·
2019-12-14 02:49
Leetcode - Perfect Squares
Mycode
:publicclassSolution{publicintnumSquares(intn){if(n=0){dp[i]=(dp[i]==0?
Richardo92
·
2019-12-12 14:08
Leetcode - Palindrome Permutation
Mycode
:publicclassSolution{publicbooleancanPermutePalindrome(Strings){if(s==null||s.length()==0){returntrue
Richardo92
·
2019-12-11 23:43
Leetcode - Valid Anagram
Mycode
:importjava.util.Arrays;publicclassSolution{publicbooleanisAnagram(Strings,Stringt){if(s==null|
Richardo92
·
2019-12-08 10:42
14. Longest Common Prefix
Description:Writeafunctiontofindthelongestcommonprefixstringamongstanarrayofstrings.
Mycode
:/***@param
Icytail
·
2019-12-07 03:57
119. Pascal's Triangle II
Mycode
:/***@param{number}rowIndex*@return{n
Icytail
·
2019-12-01 20:34
141. Linked List Cycle
Mycode
:/***Definitionforsingly-linkedlist.*functionListNode(val){*this.val=val;*this.next=null;*}*/
Icytail
·
2019-12-01 06:21
136. Single Number
Mycode
:/***@pa
Icytail
·
2019-11-30 02:32
118. Pascal's Triangle
generatethefirstnumRowsofPascal'striangle.Forexample,givennumRows=5,Return[[1],[1,1],[1,2,1],[1,3,3,1],[1,4,6,4,1]]
Mycode
Icytail
·
2019-11-29 12:46
104. Maximum Depth of Binary Tree
finditsmaximumdepth.Themaximumdepthisthenumberofnodesalongthelongestpathfromtherootnodedowntothefarthestleafnode.
Mycode
Icytail
·
2019-11-28 04:07
上一页
4
5
6
7
8
9
10
11
下一页
按字母分类:
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
其他