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
leetcode-中等难度
leetcode-
初级算法-异或
给定一个整数数组,除了某个元素外其余元素均出现两次。请找出这个只出现一次的元素。备注:你的算法应该是一个线性时间复杂度。你可以不用额外空间来实现它吗?classSolution{publicintsingleNumber(int[]nums){intresult=0;for(inti=0;i
blingfeng
·
2018-04-13 14:38
算法
收到华为offer后的阶段性总结
-小刷了下
leetcode-
浅尝tensorflow的中文文档反思-机器学习学的非常之不扎实,这是面试的基础-cv真的什么都不会啊,被网易的笔试题虐到生活不能自理-
三年二班周杰伦
·
2018-03-28 00:00
随笔
【
LeetCode-
面试算法经典-Java实现】【所有题目目录索引】
LeetCode算法题典LeetCode是一个准备面试非常有用的网站,是非常值得去的地方,里面都是一些经典的面试题,这些题目在Google,Microsoft,Facebook,Yahoo等大型互联网公司面试题中出现过,并且题目分为易,中,难三等,也按专题进行了分类,做题时可以根据自己的喜好进行。本人现在正在LeetCode上进行做题练习,并且将做的过程记录下来,供自己以后复习和大家学习,这篇博客
changwilling
·
2017-12-29 10:45
Leetcode-
Counting Bits
DescriptionGivenanonnegativeintegernumbernum.Foreverynumbersiintherange0≤i≤numcalculatethenumberof1'sintheirbinaryrepresentationandreturnthemasanarray.Example:Fornum=5youshouldreturn[0,1,1,2,1,2].Foll
Juliiii
·
2017-12-07 20:57
LeetCode-
二叉树最小深度
Givenabinarytree,finditsminimumdepth.Theminimumdepthisthenumberofnodesalongtheshortestpathfromtherootnodedowntothenearestleafnode.先上代码classSolution{public:intrun(TreeNode*root){if(root==NULL)return0;i
SincereDu
·
2017-12-06 04:36
2017年12月3日训练总结
然而仅靠我做这几道题的程度还不够出
中等难度
的题目,以后还要不断练习的强化。这三天做了几道稍微难一点的题目,并且写了几道题的题解。
LSD20164388
·
2017-12-03 20:16
训练日记
如何计算团队成员贡献分——1702班1组
前期组内分配任务,按照小组成员对该任务期望分配的时间精力进行相应任务量的分配,任务量对应相对的分数,以100分满分为例,一般难度为60分,
中等难度
为70分,高等难度为80分,如果在执行任务时发现并非所设想的难度
StevenWash
·
2017-11-21 22:00
王东岳解读老子11(独家根据音频整理)2017-11-01
然后给这种人同样难度的,
中等难度
的,
随如
·
2017-11-01 11:37
bittiger视频(AI简历)
1)coding的难度到leetocde的
中等难度
即可2)考算法推导当中Machinelearning的算法推导面试官问算法,就问面试者掌握最好的算法或者是简历上提到的某一个算法展开提问。
mdjxy63
·
2017-10-28 15:23
面试
2017.9.17
之后自主学习,再加上学委和同学的帮助,整理分析理解了一道
中等难度
的例题。感觉微微有点门道,但是个人感觉槛有点高,迈过去有难度啊!OMG...由于周末,食堂居然没有肉吃!是真的没有补给好能量。
王集是个好小伙
·
2017-09-17 19:58
leetcode-
个人题解4
LEETCODE专题4.MedianofTwoSortedArrays首先先上个题目要求:这个题目要求要仔细看,我之前就是因为没仔细看导致审错了题,3次。。。题目大意就是说:给定两个有序数组,找出它们有序拼接之后的中位数。之前审错题的分析就免了吧,现在我们直接来考虑正确的做法和问题。问题如何把两个数组有序地拼接在一起如何在有序数组中寻找中位数对于第二个问题,我想就算是编程入门的朋友也不会花太多时间
UndergroundFlying
·
2017-09-13 15:05
算法c++
leetcode
Snapchat 面经(电面+onsite)
另外还问了一道Lintcode上
中等难度
的算法题1、完美平方这道题
Winnielyn623
·
2017-08-08 23:58
从小到大排序1(for循环法)
输入n,下一行有n个数,将这n个数从小到大排序难度:
中等难度
知识点:排序、for、数组,swapswap(a,b)函数:交换a,b(a,b必须是int、double、longlong类型,字符串不行!!
清晨的海鸥
·
2017-07-31 16:25
c语言
编程
题解
素数判定c++题解
素数判定:输入一个数,如果是素数(质数),那么输出‘YES’,否则输出“NO”难度:
中等难度
这是在我二期学的。
清晨的海鸥
·
2017-07-31 15:53
c语言
编程
题解
LeetCode-
3. Longest Substring Without Repeating Characters
DescriptionGivenastring,findthelengthofthelongestsubstringwithoutrepeatingcharacters.Examples:Given"abcabcbb",theansweris"abc",whichthelengthis3.Given"bbbbb",theansweris"b",withthelengthof1.Given"pwwk
去留无意hmy
·
2017-07-24 20:24
7.20-7.21 - medium总结 - 总结2
总结的总结第二篇,覆盖前面八篇
中等难度
的80题。
中等难度
一共三百题,现在是总结到了180题。还有120题,希望这月能总结完。八十道题里面总结出28道题要重新复习,我也是醉了。啥也不说,开始做吧。
健时总向乱中忙
·
2017-07-22 00:06
【
LeetCode-
面试算法经典-Java实现】【所有题目目录索引】
转自:http://blog.csdn.net/derrantcm/article/details/46905087LeetCode算法题典LeetCode是一个准备面试非常有用的网站,是非常值得去的地方,里面都是一些经典的面试题,这些题目在Google,Microsoft,Facebook,Yahoo等大型互联网公司面试题中出现过,并且题目分为易,中,难三等,也按专题进行了分类,做题时可以根据自
Together_CZ
·
2017-07-09 21:29
算法
编程技术
面试工作
Compare Version Numbers字符串的应用+小技巧
题目描述leetcode
中等难度
题“165.CompareVersionNumbers”评价该题的题目描述的例子举得不是很好,会产生误导(至少我一开始就理解错题目了)。
DoWhatIWant_comeon
·
2017-06-14 20:32
Compare Version Numbers字符串的应用+小技巧
题目描述leetcode
中等难度
题“165.CompareVersionNumbers”评价该题的题目描述的例子举得不是很好,会产生误导(至少我一开始就理解错题目了)。
DoWhatIWant_comeon
·
2017-06-14 20:32
Minimum Time Difference不复杂
题目描述leecodemedium题“539.MinimumTimeDifference”分析别看该题是
中等难度
的题,只要缕清思路,就很简单,代码也很容易写。如题所述,我们要找最小的时间差。
DoWhatIWant_comeon
·
2017-06-14 19:53
LeetCode-
第十四题:Longest Common Prefix
题目题目题目分析题目的意思是在一个字符串数组中,找出这些字符串拥有的最长的公共前缀子串,如“ab”,“abc”,“abd”最长的公共前缀子串是“ab”.思路:采用动态的方法,首先找出任意两个字符串的最长前缀公共子串,然后再用该最长字符串去和剩余的字符串进行找最长公共子串的操作。如“ab”,“abc”,“abd”,“aef”:首先找到“ab”和“abc”的最长公共前缀字符串是“ab”,再用“ab”和
baixiaoshuai
·
2017-05-20 11:21
腾讯技术面试官如是说
准备部分刷题:分类,阶梯难度,分解任务分类举例:高深类(边界复杂,巧思...)阶梯难度(面试时先出
中等难度
,答出则出难点,答不出出简单的)刷题时1到3星都刷,主要刷2星【
中等难度
】套路:面试官提出很难的题
王庆93
·
2017-05-13 00:00
面试相关
221 - 链表求和 II
5.11终于开始做
中等难度
的题了,也算一个小小的里程碑了吧。这个题,我是把链表转换成了字符串来做的。本来想转换成整型,但是想一定会越界的,最后还是采用了字符串。就是最后的最后忘记了最高位的进位。
Missbubu
·
2017-05-11 10:59
lintcode
只管往前,我们就可以在山顶上见面
通天蜡烛山杜鹃花开通天蜡烛山活动强度为三星,
中等难度
,活动难度为三星,
中等难度
。这难度对于爬山爱好者来说,爬上山顶简直易如反掌,但是对于一个从来没有爬过山的女孩来说,
清霏
·
2017-04-25 11:13
Leetcode-
标签为Tree 543. Diameter of Binary Tree
原题Givenabinarytree,youneedtocomputethelengthofthediameterofthetree.Thediameterofabinarytreeisthelengthofthelongestpathbetweenanytwonodesinatree.Thispathmayormaynotpassthroughtheroot.Example:Givenabina
zg1g
·
2017-04-23 10:50
算法/LeetCode
经典算法
LeetCode题目研究
leetcode
二叉树
Leetcode-
标签为Tree 110. Balanced Binary Tree
原题Givenabinarytree,determineifitisheight-balanced.Forthisproblem,aheight-balancedbinarytreeisdefinedasabinarytreeinwhichthedepthofthetwosubtreesofeverynodeneverdifferbymorethan1.题目分析判断二叉树是否为平衡二叉树。代码实现
alg-flody
·
2017-04-23 09:57
算法/LeetCode
经典算法
LeetCode题目研究
Leetcode-
标签为Tree的easy题目列表
编号题目通过率程度107BinaryTreeLevelOrderTraversalII39.0%Easy257BinaryTreePaths36.8%Easy501FindModeinBinarySearchTree38.4%Easy437PathSumIII39.3%Easy404SumofLeftLeaves46.5%Easy112PathSum33.5%Easy110BalancedBina
alg-flody
·
2017-04-20 08:56
算法/LeetCode
经典算法
LeetCode题目研究
Leetcode-
标签为stack 155. Min Stack
原题题目分析设计栈,并在常数时间复杂度求栈的最小元素。内部维护一个列表实现栈的功能。代码实现publicclassMinStack{privateList_list;privateint_min;/**initializeyourdatastructurehere.*/publicMinStack(){_list=newList();}publicvoidPush(intx){_list.Add(
alg-flody
·
2017-04-15 17:58
算法/LeetCode
经典算法
LeetCode题目研究
2017年1-3月复盘(下篇)
虽然只有一个月的积累,但是改变却是明显的,看英文的网站和听一些中速
中等难度
的英文,却是不如去年那么吃力了。英语是需要时间积累的具有复利效应的事情。必须持续做下去。
大清快跑
·
2017-04-11 00:06
LeetCode-
连续子数组的最大和
Findthecontiguoussubarraywithinanarray(containingatleastonenumber)whichhasthelargestsum.Forexample,giventhearray[−2,1,−3,4,−1,2,1,−5,4],thecontiguoussubarray[4,−1,2,1]hasthelargestsum=6.clicktoshowmor
ivolcano
·
2017-03-10 00:00
编程
【机器学习】如何成为当下合格的算法工程师
比如LintCode上的题目简单和
中等难度
毫无压力做出,Hard难度在给了一定时间和一定提示时可以独立完成。微积分,统计学,离散数学Q2:成为数据挖掘工程师有必要要搞编程竞赛吗?
Emily Du
·
2016-12-21 17:24
机器学习
LeetCode-
第八题:String to Integer
题目leetCode.png分析完整代码#include#include#includeintmyAtoi(char*str);intmain(){charstr[12]="2147483648";printf("int_max=%d,%d\n",INT_MAX,myAtoi(str));return0;}intmyAtoi(char*str){if(str==NULL){return0;}lon
baixiaoshuai
·
2016-10-29 15:59
Leetcode-
第22题:Generate Parentheses
题目:Givennpairsofparentheses,writeafunctiontogenerateallcombinationsofwell-formedparentheses.Forexample,givenn=3,asolutionsetis:"((()))","(()())","(())()","()(())","()()()"分析:对于一个给定的n,有效的括号必定包括n个'('和n个
八刀一闪
·
2016-09-24 16:29
LeetCode-
做题简记
2016年夏天开始,跟着学校的一个leetcode群每天做一题。下面记录下过程中没来得及做的,或者没做好的,或者个人觉得得留意下的题目,以备更好的回顾。菜鸟一个~未做的题目(有空补上):112.PathSum241.DifferentWaystoAddParentheses3.LongestSubstringWithoutRepeatingCharacters没做好的题目:CountofRange
i-Blue
·
2016-09-22 20:49
LeetCode
C/C++
c++
leetcode
Kata: 下一个更大的数字
这题算是
中等难度
。下面是我的分析和解法,语言使用的JavaScript,但你也可以用任何其他语言来实现。Kata描述你需要提供一个函数,它接受一个正整数为参数并返回另一个正整数。
darkbaby123
·
2016-09-10 00:00
算法
leetcode-
【hard】4. Median of Two Sorted Arrays
题目Therearetwosortedarrays nums1 and nums2 ofsizemandnrespectively.Findthemedianofthetwosortedarrays.TheoverallruntimecomplexityshouldbeO(log(m+n)).Example1:nums1=[1,3] nums2=[2] Themedianis2.0 E
Shirlies
·
2016-08-10 15:00
leetcode-
【中等题】5. Longest Palindromic Substring
题目Givenastring S,findthelongestpalindromicsubstringin S.Youmayassumethatthemaximumlengthof S is1000,andthereexistsoneuniquelongestpalindromicsubstring.答案一道动规题目,每次用当前位置columnIndex跟前面位置rowIndex去比较时,如果相同
Shirlies
·
2016-08-08 15:00
leetcode-
刷题经验
以下内容来自本人在一亩三分地论坛上开帖得到的回复。既然慢就多思考优化呀。。。通常有以下思路(临时总结,仅供参考):*1.找性能瓶颈。比如排序是nlogn最耗时,有没有办法不排序直接得到答案?比如twosum,不排序,直接上hashmap2.优化代码。有挺多种情况(1)有没有多余的操作?比如不必要的copy(2)递归能不能换迭代?在递归的overhead比较高的时候,提升会明显一些(3)有没有可能剪
coder_growth
·
2016-08-06 08:56
leetcode
leetcode-
【中等题】3. Longest Substring Without Repeating Characters
题目:Givenastring,findthelengthofthe longestsubstring withoutrepeatingcharacters.Examples:Given "abcabcbb",theansweris "abc",whichthelengthis3.Given "bbbbb",theansweris "b",withthelengthof1.Given "pwwke
Shirlies
·
2016-08-04 14:00
leetcode-
【中等题】2. Add Two Numbers
题目Youaregiventwolinkedlistsrepresentingtwonon-negativenumbers.Thedigitsarestoredinreverseorderandeachoftheirnodescontainasingledigit.Addthetwonumbersandreturnitasalinkedlist.Input: (2->4->3)+(5->6->4)
Shirlies
·
2016-07-20 20:00
leetcode-
【中等题】228. Summary Ranges
题目:228.SummaryRangesGivenasortedintegerarraywithoutduplicates,returnthesummaryofitsranges.Forexample,given [0,1,2,4,5,7],return ["0->2","4->5","7"].答案:就是找连续的序列。直接判断相邻数据大小是否相差为1即可,主要是注意最后的数字要特殊考虑一下。链接:
Shirlies
·
2016-07-16 15:00
leetcode-
【hard】273. Integer to English Words
题目:273.IntegertoEnglishWordsConvertanon-negativeintegertoitsenglishwordsrepresentation.Giveninputisguaranteedtobelessthan231 -1.Forexample,123->"OneHundredTwentyThree" 12345->"TwelveThousandThreeHund
Shirlies
·
2016-07-16 13:00
leetcode-
【简单题】Happy Number
题目:Writeanalgorithmtodetermineifanumberis"happy".Ahappynumberisanumberdefinedbythefollowingprocess:Startingwithanypositiveinteger,replacethenumberbythesumofthesquaresofitsdigits,andrepeattheprocessunt
Shirlies
·
2016-07-11 09:00
leetcode-
【中等题】Divide Two Integers
题目Dividetwointegerswithoutusingmultiplication,divisionandmodoperator.Ifitisoverflow,returnMAX_INT链接https://leetcode.com/problems/divide-two-integers/答案1、int的最大值MAX_INT为power(2,31)-1=21474836472、int的最小
Shirlies
·
2016-07-09 13:00
一定要啃掉
刚才一直在研究课上的那几道dp问题,lintcode上标注为
中等难度
,到了leetcode上才发现,全是hard,但这个骨头现在我们一定要啃,拨出两天,一定要啃掉!
sjphiChina
·
2016-05-23 18:31
随笔
LeetCode-
238. Product of Array Except Self
Problem:Givenanarrayofnintegerswheren>1,nums,returnanarrayoutputsuchthatoutput[i]isequaltotheproductofalltheelementsofnumsexceptnums[i].SolveitwithoutdivisionandinO(n).Forexample,given[1,2,3,4],return
u010305706
·
2016-05-17 20:00
LeetCode
Leetcode-
关于二叉树的对称性
二叉树的镜像对称问题,是一个easy的题/** *Definitionforabinarytreenode. *structTreeNode{ *intval; *TreeNode*left; *TreeNode*right; *TreeNode(intx):val(x),left(NULL),right(NULL){} *}; */ classSolution{ public: boolisSy
sinat_27935693
·
2016-04-14 20:00
leetcode-
构造二叉树
1.由前序遍历和中序遍历构造二叉树/** *Definitionforabinarytreenode. *structTreeNode{ *intval; *TreeNode*left; *TreeNode*right; *TreeNode(intx):val(x),left(NULL),right(NULL){} *}; */ classSolution{ public: TreeNode*bu
sinat_27935693
·
2016-04-13 19:00
Ros图像与Opencv图像的相互转换(C++)
关键词:ROS图像,OpenCV图像,CVBrideg教程等级:
中等难度
1.综述ROS有其自己的消息格式为sensor_msgs/Image的显示图像,但是许多开发
鹏c
·
2016-04-13 11:53
[LeetCode] Insertion Sort List
前言InsertionSortList算是LinkedListtag下的一道
中等难度
的题吧,可以用来复习链表的选择排序操作。解法很固定,没什么讨论的余地。
AllZ
·
2016-03-19 21:02
leetcode
链表
插入排序
LeetCode
上一页
43
44
45
46
47
48
49
50
下一页
按字母分类:
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
其他