文章
41. First Missing Positive
Givenanunsortedintegerarray,findthesmallestmissingpositiveinteger.Example1:Input:1,2,0Output:3Example2:Input:3,4,1,1Output:2
7. Reverse Integer
Givena32bitsignedinteger,reversedigitsofaninteger.Example1:Input:123Output:321Example2:Input:123Output:321Example3:Input:120
以太坊合约的安全性弱点,你都绕开了吗 III
<blockquote新年前,我们最后来谈一谈以太坊安全性的特点。</blockquote不可能修改的bug当合约公开在区块链上之后,它就不能去修改了。相应的,合约中出现的任何bug也没有机会改正。如果希望能够修改bug,合约编写者就需要在编写合约的时候预留一些用来修改或
1. Two Sum
Givenanarrayofintegers,returnindicesofthetwonumberssuchthattheyadduptoaspecifictarget.Youmayassumethateachinputwouldhavee
LeetCode——Longest Substring Without Repeating Characters
原问题Givenastring,findthelengthofthe longestsubstring withoutrepeatingcharacters.<pre<codeExample1:Input:&34;abcabcbb&34;Outp
盘他!以太坊合约的安全性弱点II
今天,我们继续介绍文献中提到的以太坊合约的安全性弱点与案例。数据保密Solidity智能合约中的变量分public和private两种。Private变量表示这个数值不能被其他合约直接读取。但是,将一个变量标记为private不意味着里面的信息就是保密的。因为以太坊是公开的,
深度优先搜索和广度优先搜索
不撞南墙不回头深度优先搜索基础部分对于深度优先搜索和广度优先搜索,我很难形象的去表达它的定义。我们从一个例子来切入。输入一个数字n,输出1~n的全排列。即n3时,输出123,132,213,231,312,321把问题形象化,假如有1,2,3三张扑克牌
15. 3Sum
Givenanarraynumsofnintegers,arethereelementsa,b,cinnumssuchthatabc0?Findalluniquetripletsinthearraywhichgivesthes
12. Integer to Roman
Romannumeralsarerepresentedbysevendifferentsymbols:I,V,X,L,C,DandM.<pre<codeSymbolValueI1V5X
11. Container With Most Water
Givennnonnegativeintegersa1,a2,...,an,whereeachrepresentsapointatcoordinate(i,ai).nverticallinesaredrawnsuchthatthetwoendp
已加载文章中没有匹配内容,试试其他关键词或清空搜索。