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
Careercup
[
CareerCup
] 17.1 Swap Number In Place 互换位置
17.1Writeafunctiontoswapanumberinplace(thatis,withouttemporaryvariables).这道题让我们交换两个数,但是不能用额外空间,那么我们可以先做差值,存入a中,然后再加上b,存入b中,那么此时的b即为原来的a,因为整个相当于做了一个a-b+b的过程,那么现在b是原来的a,而a中现在保存的是差值,,那么原来的b值就可以通过b-a来得到,保
weixin_33845477
·
2024-01-20 22:45
【找工作准备】计算机基础知识整理
————————————————————————————————————————————-1.数据结构与算法1.1书籍(1)算法导论(2)编程之美(3)编程珠玑(4)数据结构(C语言版)(5)
CareerCup
.Crack
buxizhizhou530
·
2023-11-14 09:16
总结
笔试/面试
找工作
计算机
基础知识
算法
读书笔记| 程序员面试金典
github:https://github.com/
careercup
/CtCI-6th-Editionmy-coding:https://git.coding.net/daydaygo/CTCI.gitdate
daydaygo
·
2023-06-15 01:49
[
CareerCup
] 12.5 Test a Pen 测试一支笔
12.5Howwouldyoutestapen?这道题让我们测试一支笔,我们需要问面试官许多问题来理解"who,what,where,when,howandwhy",比如我们可以这样:面试官:你怎样测试一支笔?候选人:谁将要使用这笔?面试官:儿童候选人:有意思,那么他们用来干什么呢,是写字,画画,还是做别的?面试官:画画候选人:很棒,在什么上呢,纸,布上还是墙上?面试官:布上候选人:不错,笔头是啥
weixin_33963594
·
2023-01-18 13:54
No.0005-
CareerCup
Givenapatternandadictionary,printoutallthestringsthatmatchthepattern.Acharacterinthepatternismappeduniquelytoacharacterinthedictionary.e.g.:('abc',['cdf','too','hgfdt','paa'])->output=['cdf']('acc',['
akak18183
·
2021-05-11 03:26
No.0018-
CareerCup
题目描述GivenanarrayoflengthNandanintegerK,sortthearrayasmuchaspossiblesuchthatnoelementtravelsmorethanKpositionstoitsleft--howeveritcantravelasmuchasitlikestotheright.给一个长度为N的数组和整数K,要求尽可能排序,前提是元素不能左移超过K,
akak18183
·
2021-04-26 04:16
No.0001-
CareerCup
Giventwointegerarrayslist1andlist2andaninttargetvalue,checkifthereexistssuchasum,whereonenumbertakenfromlist1andanothertakenfromlist2toadduptobecomethetargetvalue.Returntrueorfalse.给出两个整数数组list1和list2
akak18183
·
2021-04-21 05:48
No.0002-
CareerCup
Givenasparsematrix,implementbelowtwomethods:voidset(introw,intcol,intval)//Updatevalueatgivenrowandcol;intsum(introw,intcol)//Getsumfromtopleftcornertogivenrow,colsub-matrix.给出一个稀疏矩阵,要求实现两个方法:第一个是更新指定
akak18183
·
2021-04-14 10:57
FWD:Google前美女面试官谈程序员面试的技巧和建议
她现在是
CareerCup
和SeattleAnti-Freeze两家公司的创始人兼CEO。她也是《CrackingtheCodingInterview》一书的作者。您好,盖尔。能先自我简单介绍一下呢?
Yibaini
·
2020-09-16 20:22
myLife:)
大杂烩
面试
google
数据结构
工作
招聘
编程
linux c++ 服务器端开发面试必看书籍
一、算法基础系列数据结构基础(C语言版)》朱仲涛译《剑指Offer》《编程之美》《编程珠玑》《
CareerCup
-Top150Ques
蓝色当当风
·
2020-08-24 16:35
CareerCup
Josephus Problem 约瑟夫环
Givenacircularsinglelinkedlist.Writeaprogramthatdeleteseverykthnodeuntilonlyonenodeisleft.Afterkthnodeisdeleted,starttheprocedurefrom(k+1)thnode.e.g.listis1->2->3->4->5->1k=31.Youareat1,delete3.Listis
taoqick
·
2020-08-22 13:15
c++
算法
程序员面试金典--笔记(精华篇)
2017/01/cracking_interview.html《程序员面试金典》1-7章的总结相关读物《金领简历:敲开苹果、微软、谷歌的大门》(CayleLaakmannMcDowell盖尔拉克曼麦克道尔)
careercup
.com
疯子19911109
·
2020-08-20 13:02
读书笔记
No.0011-
CareerCup
GivenalistofstringthatrepresentclassnamesinCamelCaseNotationandapattern.Writeafunctionthatreturnsthematchingelementsasalist.Example:List:['HelloMars','HelloWorld','HelloWorldMars','HiHo']input:'H'->ou
akak18183
·
2020-08-20 03:51
No.0013-
CareerCup
Givenanarrayofintegers,defineMaxPrefixascountofelementsthataregreaterthantheelementandintherightsideofelement.WriteaprogramtogivethemaxofMaxPrefixofgivenarray.给一个整数数组,定义MaxPrefix是在元素右边比该元素大的数的个数,求数组里面
akak18183
·
2020-08-19 07:19
[
CareerCup
] 9.3 Magic Index 魔法序号
9.3AmagicindexinanarrayA[0...n-1]isdefinedtobeanindexsuchthatA[i]=i.Givenasortedarrayofdistinctintegers,writeamethodtofindamagicindex,ifoneexists,inarrayA.FOLLOWUPWhatifthevaluesarenotdistinct?这道题定义了一
weixin_34061042
·
2020-08-18 04:08
专访左程云:5年刷题大牛分享算法学习之道
最开始是把能找到的所有这方面的书全部看懂,并且实现了好几遍,然后开始刷LeetCode和
CareerCup
这两个网站上的题,去网上搜各种各样的分析文章,总之是把一切有关代码面试的东西都搜来学习。
herongweiV
·
2020-08-02 19:11
【学习笔记/总结】
算法练习站点
Lintcodehttp://www.lintcode.com/en/Leetcodehttps://www.leetcode.com/careercuphttp://www.
careercup
.com
gammaliu
·
2020-07-16 07:51
[转帖] 一些算法刷题的网站
1.leetcodehttp://leetcode.com/2.careeruphttp://www.
careercup
.com/http://hawstein.com/posts/ctci-solutions-contents.html3
weixin_34341229
·
2020-07-08 17:45
linux c++ 服务器端开发面试必看书籍
一、算法基础系列数据结构基础(C语言版)》朱仲涛译《剑指Offer》《编程之美》《编程珠玑》《
CareerCup
-Top150Questions4th》《[算法导论].
老张心得
·
2020-07-07 01:17
计算机
IT
C
C
No.0016-
CareerCup
Takeanarrayandprintnonoverlappinginorderpairs.Example:input=>[1,2,3,4]output:anarraycontainingbelowelements(1234)(1)(234)(1)(23)(4)(1)(2)(34)(12)(34)(12)(3)(4)(123)(4)(1)(2)(3)(4)1.询问如何应付空输入?假设返回空数组。输
akak18183
·
2020-07-05 07:34
看这里!C++程序猿必读九本服务器开发经典书籍
一、算法基础系列数据结构基础(C语言版)》朱仲涛译《剑指Offer》《编程之美》《编程珠玑》《
CareerCup
-Top150Questions4th》《[算法导论].
键盘舞蹈者
·
2020-06-26 00:46
C语言
C++
编程
判断字符串中有无重复字符,不用额外额数据结构
CareerCup
一道题。
KangRoger
·
2020-06-21 23:07
面试笔试题目
因为知道了这些个网站,我成了别人眼中的大神!
国外版知乎6、知乎编程精华正版知乎7、掘金8、reddit资讯类9、infoq10、开发者头条11、sdk.c12、cocoachina文章类13、博客园14、干货集中营15、推酷面试类16、九章算法17、
careercup
18
CSDN数学家
·
2020-06-21 22:31
各种常用资源
服务器开发必读书籍
转一、算法基础系列数据结构基础(C语言版)》朱仲涛译《剑指Offer》《编程之美》《编程珠玑》《
CareerCup
-Top150Questions4th》《[算法导论].
weixin_30335353
·
2020-06-21 09:21
No.0023-
CareerCup
问题描述Givenalistofpiesandthenumberofslicesineachpie,calculatethemaximumnumberofslicesthatnpeoplecouldreceiveifeachpersongotthesameamountofslicesanddidnotgetslicesfrommorethan1pie.Thefunctionlookslikethi
akak18183
·
2020-04-10 00:38
No.0009-
CareerCup
Amatrixis"Toepliz"ifeachdescendingdiagonalfromlefttorightisconstant.GivenanMxNmatrixwritethemethodisToepliztodetermineifamatrixisToepliz.Example:67892467891467801467判断一个MxN的矩阵是不是“Toepliz”矩阵,就是说其左上右下方向
akak18183
·
2020-04-05 23:11
2.面试中的算法模板
书:crackingthecodinginterview豆瓣亚马逊网站:
careercup
代码风格代码块可分为三大块:异常处理(空串和边界处理),主体,返回值代码风格(可参考Google的编程语言规范)
偷天神猫
·
2020-04-05 14:09
No.0003-
CareerCup
Givenalengthn,returnthenumberofstringsoflengthnthatcanbemadeupoftheletters'a','b',and'c',wheretherecanonlybeamaximumof1'b'andcanonlyhaveuptotwoconsecutive'c's.Example:findStrings(3)returns19sincethepo
akak18183
·
2020-04-01 22:47
No.0014-
CareerCup
Let't'beagoodnumberif't'canbewrittenassumof2cubesinatleast2distinctways.Givenn,writeamethodwhichprintsallgoodnumbersuptoandincludingn.“好数”的定义:假如一个数t能用至少两种不同的方式写成两个三次方数的和,就称其为“好数”。给一个整数n,求所有的小于等于n的“好数”
akak18183
·
2020-03-29 01:56
No.0022-
CareerCup
问题描述英文版太长就不贴了。大意是给出一组iterator,要求设计一个新的iterator,来按照顺序每次从一个iterator中取出一个元素,空的则跳过。例如,A=[1,2,3],B=[a,b,c],C=[f,7],结果应该是[1,a,f,2,b,7,3,c]。询问补充思路分析简单思路直白的思路就是,先把元素按顺序取出来,然后再生成一个新的iterator。改进前一个解法的改进就是,不取出来,
akak18183
·
2020-03-27 20:27
No.0004-
CareerCup
Youhaveabunchoflightbulbs.Storethemasyouwish.Implementafunctionthattellsyouifthelightisonoroffgivenitsindexandanotheronethattogglesthestateofthelightbulbsgivenastartandendindex.你有一些灯泡,按照你自己的方法存储。实现一个方
akak18183
·
2020-03-26 02:39
No.0021-
CareerCup
问题描述Given2stringsAandB,generateallpossiblesolutionswhenBismergedwithA.Example:A="hey",B="sam"out:heysam,hseaym,hesaym,sahemyetc.Noticeorder.给出两个字符串A和B,要求在不打乱A和B各自的顺序下,返回A和B融合的所有可能结果。也就是说,融合的结果忽略A的字符,B
akak18183
·
2020-03-23 14:33
No.0024-
CareerCup
问题描述Givenapackedfilewith1Tbof64-bitdoubles(first8bytesarefirstdouble,next8bytesarenext,etc),findtheexactvalueofmedian.Forsimplicityassumethenumberofdoublesisodd.Youcannotmodifythefileandyouhaveonly8Gb
akak18183
·
2020-03-23 09:31
No.0012-
CareerCup
GivenamatrixwithNrowsandNcolumns.Elementsinmatrixis1or0.Eachrowandcolumnofmatrixissortedinascendingorder.Findthenumberof0singivenmatrix.给出一个NxN的方阵,元素只有0或者1,每一行每一列都是升序排列,求矩阵中0的个数。1.询问没什么好问的。2.分析暴力破解毫无疑
akak18183
·
2020-03-22 04:50
算法编程题库
1.leetcodehttp://leetcode.com/2.careeruphttp://www.
careercup
.com/http://hawstein.com/posts/ctci-solutions-contents.html3
RivenL
·
2020-03-20 00:09
No.0017-
CareerCup
Youaregivenarange[first,last],initiallywhite.Youneedtopaintitblack.Forthispurposeyouhaveasetoftriples[(f,l,cost),...]-whereeachtriplemeansthatyoucanpaintrange[f,l]for'cost'coins(limitations:costisfloa
akak18183
·
2020-03-15 03:41
No.0008-
CareerCup
Givenastringreturnthelongestpalindromethatcanbeconstructedbyremovingorshufflingcharacters.Example:'aha'->'aha''ttaatta'->'ttaaatt''abc'->'a'or'b'or'c''gggaaa'->'gaaag'or'aggga'给出一个字符串,允许删除字符和任意调换字符串位置
akak18183
·
2020-02-28 15:52
linux c++ 服务器端开发面试必看书籍整理
一、算法基础系列数据结构基础(C语言版)》朱仲涛译《剑指Offer》《编程之美》《编程珠玑》《
CareerCup
-Top150Questions4th》《[算法导论].
CTHON
·
2020-02-13 23:22
No.0025-
CareerCup
问题描述Givenanarrayofnumbers,findthelongestalternatingsubsequence.Thatis,asubsequence[a1,a2,a3,...,ak]wherea1>a2,a2a4...,orviceversa(graphicallylookslike/\/\/...or\/\/\/...).给出一个数组,找到最长的交替子序列,即其元素的大小关系不断
akak18183
·
2020-01-06 09:21
No.0007-
CareerCup
Giventwoobjectarraysof'id,weight'(sortedbyweight),mergethemtogetherandcreateaonesinglearray.Ifthe'id'saresame,valuesshouldbeaddedupandonlykeeponeleft.Finalresultshouldstillbesortedbyweight.有一个对象,含有id和
akak18183
·
2019-12-15 15:15
Cracking the coding interview目录及资料收集
前言《Crackingthecodinginterview》是一本被许多人极力推荐的程序员面试书籍,详情可见:http://www.
careercup
.com/book。
custer
·
2019-10-19 16:00
Cracking the coding interview目录及资料收集
前言《Crackingthecodinginterview》是一本被许多人极力推荐的程序员面试书籍,详情可见:http://www.
careercup
.com/book。
custergo
·
2019-10-19 16:00
算法刷题的网站
leetcodehttp://leetcode.com/careeruphttp://www.
careercup
.com/http://hawstein.com/posts/ctci-solutions-contents.htmlglassdoorhttp
冥更
·
2019-04-23 09:36
机器学习
程序员刷题面试资源汇总
NowCoder-InterviewCake -LeetCode -HackerRank -CodeEval -TopCoder -CodingBat -GeeksforGeeks -ProgrammingPraxis -
CareerCup
cunane
·
2019-01-10 00:00
linux c++ 服务器端开发面试必看书籍
一、算法基础系列数据结构基础(C语言版)》朱仲涛译《剑指Offer》《编程之美》《编程珠玑》《
CareerCup
-Top150Questions4th》《[算法导论].
CTHON
·
2018-05-25 20:00
No.0010-
CareerCup
Givenalistofwords,andthenumberofrowsandcolumns,returnthenumberofwordsthatcanbefitintotherowsandcolumnsbystringingtogethereachconsecutiveword.Ifthenextworddoesnotfitinthesameline,itshouldmovetothenextl
akak18183
·
2017-12-04 06:38
Google前美女面试官谈程序员面试的技巧和建议
她现在是
CareerCup
和SeattleAnti-Freeze两家公司的创导读:盖尔·拉克曼(GayleLaakmann),Google前员工,目前在宾夕法尼亚大学沃顿商学院攻读MBA。
枯岭决
·
2017-11-29 21:03
IT资讯与见解
一些算法刷题的网站
leetcodehttp://leetcode.com/careeruphttp://www.
careercup
.com/http://hawstein.com/posts/ctci-solutions-contents.htmlglassdoorhttp
一只叫羊的羊
·
2017-10-31 14:14
算法
No.0019-
CareerCup
题目引用Givenk-whichisthenumberofbits,printallpossiblecombinationsofnumbersformedbyprintingallnumberswithonebitset,followedbytwobitsset...uptothepointwhenallk-bitsareset.Theymustbesortedaccordingtothenumb
akak18183
·
2017-04-07 08:45
No.0015-
CareerCup
Implementmethod:ListgetRanges(Listshards,Listkeys)Thatreturnslistofranges.Eachrangerepresentsmultiplekeysaggregatedoverashard:n-keys->1-shard->1-rangeMethodshouldreturnnomorethan1rangepershardthatspan
akak18183
·
2016-11-14 03:31
上一页
1
2
3
4
5
6
7
8
下一页
按字母分类:
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
其他