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
!!!Interview
Cracking the coding
interview
--Q18.6
题目原文:YouaregivenaclasswithsynchronizedmethodA,andanormalmethodC.Ifyouhavetwothreadsinoneinstanceofaprogram,cantheycallAatthesametime?CantheycallAandCatthesametime?译文:提供你一个含有同步方法A和普通方法C的类,如果你在程序的实例化中有两
Mars_NAVY
·
2014-04-06 09:00
Cracking the coding
interview
--Q18.5
题目原文:Supposewehavethefollowingcode:classFoo{public:A(.....);/*IfAiscalled,anewthreadwillbecreatedand*thecorrespondingfunctionwillbeexecuted.*/B(.....);/*sameasabove*/C(.....);/*sameasabove*/}Foof;f.A(
Mars_NAVY
·
2014-04-05 10:00
Cracking the coding
interview
--Q18.4
题目原文:Designaclasswhichprovidesalockonlyiftherearenopossibledeadlocks.译文:设计一个提供锁但不可能发生死锁的类。解答原书解答:classMyThreadextendsThread{ longtime; ArrayListres=newArrayList(); publicArrayListgetRes(){returnres;}
Mars_NAVY
·
2014-04-04 09:00
Cracking the coding
interview
--Q18.3
题目原文:Implementasingletondesignpatternasatemplatesuchthat,foranygivenclassFoo,youcancallSingleton::instance()andgetapointertoaninstanceofasingletonoftypeFoo.AssumetheexistenceofaclassLockwhichhasacquir
Mars_NAVY
·
2014-04-03 22:00
Cracking the coding
interview
--Q18.2
题目原文:Howcanyoumeasurethetimespentinacontextswitch?译文:怎样计算上下文切换的时间?解答上下文切换(有时也称为进程切换或任务切换)是指CPU的控制权从一个进程或线程切换到另一个。引起上下文切换的原因有哪些?时间片用完,CPU正常调度下一个任务;被其他优先级更高的任务抢占;执行任务碰到IO阻塞,调度器挂起当前任务,切换执行下一个任务;用户代码主动挂起当
Mars_NAVY
·
2014-04-03 17:00
Cracking the coding
interview
--Q18.1
题目原文:What’sthedifferencebetweenathreadandaprocess?译文:线程与进程之间有什么不同?解答简言之,线程与进程的区别是:一个程序至少有一个进程,一个进程至少有一个线程;详细点,进程和线程的主要差别在于它们是不同的操作系统资源管理方式。进程有独立的地址空间,一个进程崩溃后,在保护模式下不会对其它进程产生影响,而线程只是一个进程中的不同执行路径。线程有自己的
Mars_NAVY
·
2014-04-03 17:00
Cracking the coding
interview
--Q17.5
题目原文:WhatarethedifferencesbetweenTCPandUDP?ExplainhowTCPhandlesreliabledelivery(explainACKmechanism),flowcontrol(explainTCPsebnder’s/receiver’swindow)andcongestioncontrol.译文:TCP与UDP之间有什么不同?解释TCP怎样如何处理
Mars_NAVY
·
2014-04-03 16:00
Cracking the coding
interview
--Q17.4
题目原文:Whatisanetwork/subnetmask?ExplainhowhostAsendsamessage/packettohostBwhen:(a)bothareonsamenetworkand(b)bothareondifferentnetworks.Explainwhichlayermakestheroutingdecisionandhow.译文:网络/子网掩码是什么?解释主机A
Mars_NAVY
·
2014-04-03 16:00
Cracking The Coding
Interview
1.8
//AssumeyouhaveamethodisSubstringwhichchecksifonewordisasubstringofanother. //Giventwostrings,s1ands2,writecodetocheckifs2isarotationofs1usingonlyonecalltoisSubstring //(i.e.,“waterbottle”isarotationo
shenlan282
·
2014-04-03 12:00
Cracking The Coding
Interview
1.7
//WriteanalgorithmsuchthatifanelementinanMxNmatrixis0,itsentirerowandcolumnissetto0. // //这题原答案就是要两个buffer来记录出现0的位置。不知道有没可以不用buffer的方法。 #include usingnamespacestd; voidsetZero(int**matrix,intm,intn)
shenlan282
·
2014-04-03 10:00
Cracking The Coding
Interview
1.6
//原文: // //GivenanimagerepresentedbyanNxNmatrix,whereeachpixelintheimageis4bytes,writeamethodtorotatetheimageby90degrees.Canyoudothisinplace? // //先转置在上下交换 #include usingnamespacestd; voidswap(int&a,
shenlan282
·
2014-04-03 09:00
Cracking The Coding
Interview
1.5
//原文: // //Writeamethodtoreplaceallspacesinastringwith‘%20’. // #include usingnamespacestd; char*replace(char*str) { if(str==NULL) { returnNULL; } intsize=strlen(str); char*tem=newchar[size+1]; inti=0
shenlan282
·
2014-04-02 15:00
Cracking the coding
interview
--Q17.3
题目原文:CompareandcontrasttheIPv4andIPv6protocols.译文:对比下IPv4和IPv6协议。解答什么是IPv4? 目前的全球因特网所采用的协议族是TCP/IP协议族。IP是TCP/IP协议族中网络层的协议,是TCP/IP协议族的核心协议。目前IP协议的版本号是4(简称为IPv4),发展至今已经使用了30多年。 IPv4的地址位数为32位,也就是最多
Mars_NAVY
·
2014-04-01 21:00
Cracking The Coding
Interview
1.4
//Writeamethodtodecideiftwostringsareanagramsornot. // //变位词(anagrams)指的是组成两个单词的字符相同,但位置不同的单词。比如说,abbcd和abcdb就是一对变位词。 // //使用一个固定数组大小记录各个字符出现的次数,同1.1 #include usingnamespacestd; boolisAnagrams(constch
shenlan282
·
2014-04-01 16:00
Cracking The Coding
Interview
1.3
//原文: // //Designanalgorithmandwritecodetoremovetheduplicatecharactersinastringwithoutusinganyadditionalbuffer.NOTE:Oneortwoadditionalvariablesarefine.Anextracopyofthearrayisnot. // //FOLLOWUP // //Wr
shenlan282
·
2014-04-01 16:00
Cracking The Coding
Interview
1.2
//原文: // //WritecodetoreverseaC-StyleString.(C-Stringmeansthat“abcd”isrepresentedasfivecharacters,includingthenullcharacter.) // //从前向后交换,到中间为止 #include usingnamespacestd; voidmSwap(char&a,char&b) {
shenlan282
·
2014-03-31 13:00
Cracking The Coding
Interview
1.1
//原文: // //Implementanalgorithmtodetermineifastringhasalluniquecharacters.Whatifyoucannotuseadditionaldatastructures? // //使用一个数组来记录该字符是否出现过,这里假定只为小写字母。 #include usingnamespacestd; boolisUnique(constc
shenlan282
·
2014-03-31 13:00
软件开发者面试百问
http://www.infoq.com/cn/articles/programmer-
interview
bigsloth
·
2014-03-27 16:00
作为一个C#程序员,你到底能够达到什么级别?测试一下吧
原文地址:http://www.hanselman.com/blog/WhatGreatNETDevelopersOughtToKnowMoreNET
Interview
Questions.aspx作者:
lingxyd_0
·
2014-03-27 10:00
面试题
级别
How HipChat Stores And Indexes Billions Of Messages Using ElasticSearch And Redis
This article is from an
interview
with Zuhaib Siddique, a production engineer at HipChat, makers
·
2014-03-26 10:00
elasticsearch
Crack The Coding
Interview
1.1 笔记
题目:Implementanalgorithmtodetermineifastringhasalluniquecharacters,whatifyoucannotuseadditionaldatastructures?代码链接
_jerrywu
·
2014-03-25 05:00
一个经典编程面试题的“隐退”
Codility和
Interview
Street这样的创业公司从这个具有挑战性的课题中看到了机会。与此同时,DiegoBasch呼吁我们停止逼迫求职者进行白板编程。对此我没有什么更好的建议。
liuwei3721
·
2014-03-22 11:00
Cracking the coding
interview
--14.1-14.6
题目14.1原文:Intermsofinheritance,whatistheeffectofkeepingaconstructorprivate?译文:在继承方面,保持一个构造函数私有的作用是什么?解答14.1使构造函数私有可以使类只供内部使用,只被调用一次,生成的实例是单一的,单例模式就是一个很好的例子。classSingleton{ privatestaticSingletoninstan
Mars_NAVY
·
2014-03-20 21:00
【转】iOS高级向的十道面试问题
原文:http://onevcat.com/2013/04/ios-
interview
/不管对于招聘和应聘来说,面试都是很重要的一个环节,特别对于开发者来说,面试中的技术问题环节不仅是企业对应聘者技能和积累的考察
guoleiappleapp
·
2014-03-20 15:40
Cracking the coding
interview
--Q12.7
题目原文:Youhavetodesignadatabasethatcanstoreterabytesofdata.Itshouldsupportefficientrangequeries.Howwouldyoudoit?译文:你必须设计一个能存储TB级数据的数据库,并且它支持高效的区间查询,该怎样设计它?解答首先要明确,并不是所有的字段都可以做区间查询。比如对于一个员工,性别就没有所谓的区间查询;
Mars_NAVY
·
2014-03-19 16:00
Programmer’s dilemma
RecentlyI
interview
edtensofcandidatesforakernelprogrammer’sposition.Thesecandidatesarefrombig,goodcompanies
nic_r
·
2014-03-19 16:00
Cracking the coding
interview
--Q12.6
题目原文:Youhaveabillionurls,whereeachisahugepage.Howdoyoudetecttheduplicatedocuments?译文:你有一亿个urls,每个urls都链接一个很大的页面,你怎样检测重复的页面?解答网页大,数量多,要把它们载入内存是不现实的。因此我们需要一个更简短的方式来表示这些网页。而hash表正是干这事的。我们将网页内容做哈希,而不是url,
Mars_NAVY
·
2014-03-18 10:00
Cracking the coding
interview
--Q12.5
题目原文:Ifyouweredesigningawebcrawler,howwouldyouavoidgettingintoinfiniteloops?译文:如果你正在设计一个网络爬虫,何如避免进入无限循环?解答首先了解什么是网络爬虫,http://blog.csdn.net/navyifanr/article/details/21442653网络爬虫的通用框架如图: 网络爬虫的基本工作流程如
Mars_NAVY
·
2014-03-18 09:00
百度面试
http://studentdeng.github.io/blog/2014/02/11/baidu-
interview
/百度面试百度移动云可穿戴部门的面试经历,面试官都非常热情友好,一上来到弄的我挺不好意思的
itianyi
·
2014-03-17 16:00
(转载)大数据实战:站在JMP分析平台上的FIT足迹识别技术
http://www.csdn.net/article/2014-03-16/2818786-
interview
-jmp-fit摘要:1、作为公益性动物保护组织,WildTrack是如何在JMP统计分析软件上开发出自己的技术
fjssharpsword
·
2014-03-17 09:00
Cracking the coding
interview
--Q12.4
题目原文:Youhaveanarraywithallthenumbersfrom1toN,whereNisatmost32,000.ThearraymayhaveduplicateentriesandyoudonotknowwhatNis.Withonly4KBofmemoryavailable,howwouldyouprintallduplicateelementsinthearray?译文:你
Mars_NAVY
·
2014-03-16 19:00
Cracking the coding
interview
--Q12.3
题目原文:Givenaninputfilewithfourbillionintegers,provideanalgorithmtogenerateanintegerwhichisnotcontainedinthefile.Assumeyouhave1GBofmemory.FOLLOWUPWhatifyouhaveonly10MBofmemory?译文:给一个有40亿个整型数据的输入文件,写出一个算
Mars_NAVY
·
2014-03-16 16:00
【LeetCode】N-Queens II N皇后问题 回溯法
insteadoutputtingboardconfigurations,returnthetotalnumberofdistinctsolutions.Haveyoubeenaskedthisquestioninan
interview
xiaozhuaixifu
·
2014-03-15 20:00
LeetCode
n皇后问题
Self-introduction(最近准备IT企业英文面试的自我介绍)
Self-introduction Goodafternoon,mydearmanager.I’mveryhappyandexcitedforhavingafacetoface
interview
inyourcompany.Firstly
oceanlucy
·
2014-03-15 15:00
it
Cracking the coding
interview
--Q12.2
题目原文:Howwouldyoudesignthedatastructuresforaverylargesocialnetwork(Facebook,LinkedIn,etc)?Describehowyouwoulddesignanalgorithmtoshowtheconnection,orpath,betweentwopeople(e.g.,Me->Bob->Susan->Jason->You
Mars_NAVY
·
2014-03-14 11:00
疯狂的Google之各种传说
1、传说中的15道面试题版本一:中文版:http://www.techbang.com/posts/5627-downright-google-
interview
-questions-the-original-is-a-fake
u012564690
·
2014-03-13 19:00
Google
面试题
Cracking the coding
interview
--Q12.1
题目原文:Ifyouwereintegratingafeedofendofdaystockpriceinformation(open,high,low,andclosingprice)for5,000companies,howwouldyoudoit?Youareresponsibleforthedevelopment,rolloutandongoingmonitoringandmaintenan
Mars_NAVY
·
2014-03-13 11:00
Interview
----用最快的方法计算 Fibonacci 数
输入n,用最快的方法求该Fibocacci数列的第n项。方法1:递归,非常慢方法2:迭代,因此计算f[1],f[2],f[3],,,,复杂度O(N)方法3:采用以上公式,计算n幂次的时候,采用二分的思想。可将复杂度提高到O(lgN)具体代码如下。//
[email protected]
,2014 //fibonaccinumbers //O(lgN) #include #inc
u012653791
·
2014-03-12 22:00
fibonacci
Cracking the coding
interview
--Q11.1~Q11.6
题目11.1译文:找出下列代码的错误:unsignedinti;for(i=100;i=0,但要注意到i是无符号整型,所以存在i>=0,所以这样改将会进入死循环,没有结束的标记,所以要将改为i>0,程序打印1-100的数,即unsignedinti;for(i=100;i>0;--i)printf(“%d\n”,i);当然也可以改掉i的类型:inti;for(i=100;i>=0;--i)prin
Mars_NAVY
·
2014-03-12 19:00
【转】iOS高级向的十道面试问题
原文:http://onevcat.com/2013/04/ios-
interview
/ 不管对于招聘和应聘来说,面试都是很重要的一个环节,特别对于开发者来说,面试中的技术问题环节不仅是企业对应聘者技能和积累的考察
lizhuang
·
2014-03-12 15:00
ios
框架
面试
Cracking the coding
interview
--Q10.1~Q10.7
题目10.1译文:你有一个篮球架,可以在以下游戏中选择一个来玩。游戏1:投一次球,进了算赢。游戏2:投三次球,至少要进2个才算赢。如果命中率是p,那么p是什么值时你会选游戏1来玩?或p是什么值时你会选择游戏2?解答10.1由题意,游戏1的命中率为p;游戏2命中率为:C(2,3)*p^2*(1-p)+p^3=3*p^2-2*p^3,所以由 p>3*p^2-2*p^3得p0.5时,选游戏2玩题
Mars_NAVY
·
2014-03-11 11:00
Interview
----First single charactor
题目:在一个字符串中找到第一个只出现一次的字符。如输入abaccdeff,则输出b。分析:这道题是2006年google的一道笔试题。分析:用Hash,时间和空间复杂度是O(N)当然,如果字符是ASCII编码的话,可以开一个256长的数组来对每个字符出现的次数进行记录。下面的代码采用了unordered_map,用HASH实现。。有几点注意的地方:1. unordered_map[key],返回一
u012653791
·
2014-03-10 21:00
字符串
Interview
----将一棵二叉树转换成其镜像
题目:输入一颗二元查找树,将该树转换为它的镜像,即在转换后的二元查找树中,左子树的结点都大于右子树的结点。用递归和循环两种方法完成树的镜像转换。例如输入: 8 / \ 6 10 / \ / \ 5 7 9 11输出: 8 / \ 10 6 / \ /\11975分析:1.递归,类似与先序和后序遍历。2.迭代:可以采用先序,后序的迭代版本,或者采用层序遍
u012653791
·
2014-03-10 19:00
二叉树镜像
Cracking the coding
interview
--Q9.7
题目原文:Acircusisdesigningatowerroutineconsistingofpeoplestandingatoponeanother’sshoulders.Forpracticalandaestheticreasons,eachpersonmustbebothshorterandlighterthanthepersonbelowhimorher.Giventheheightsa
Mars_NAVY
·
2014-03-09 21:00
待优化
Cracking the coding
interview
--Q9.6
题目原文:Givenamatrixinwhicheachrowandeachcolumnissorted,writeamethodtofindanelementinit.译文:给一个矩阵并且每行每列都是有序的,写一个方法找出它的一个元素。解答由于矩阵每行每列都是有序的,假设其递增,列出下面矩阵,观察其规律: 1 5 9 13 2 6 1014 3 7 1115 4 8 1216由于递增关系
Mars_NAVY
·
2014-03-09 11:00
待优化
Interview
of Citic
参加完Citic的笔试,想起自己考前的迷茫,还是整理一份真实的,为后面的同学造福我参加的是河北省中信银行石家庄分行,IT类笔试之前有很多人认为考银行都要准备金融会计方面的知识,但是如果你是计算机专业就完全不用了,因为中信出两套卷子,一套综合类+性格行测,一套IT类+性格行测,所以对号入座就行了,本人考的后者,就回忆一下IT类的考点整个考试历时三个小时,专业课(IT)2个小时/100道选择题(60道
iamdll
·
2014-03-07 13:00
Cracking the coding
interview
--Q9.5
题目原文:Givenasortedarrayofstringswhichisinterspersedwithemptystrings,writeamethodtofindthelocationofagivenstring.Example:find“ball”in[“at”,“”,“”,“”,“ball”,“”,“”,“car”,“”,“”,“dad”,“”,“”]willreturn4Exampl
Mars_NAVY
·
2014-03-07 11:00
Cracking the coding
interview
--Q9.4
题目原文:Ifyouhavea2GBfilewithonestringperline,whichsortingalgorithmwouldyouusetosortthefileandwhy?译文:你有2GB的文件,其中每行一个字符串,你会使用哪种排序算法来排序,为什么?解答 2GB的文件肯定不会一次性载入内存,所以可以分次载入内存; 而我们一般提到排序都是指内排序,比如快速排序,堆排序,归并排
Mars_NAVY
·
2014-03-06 23:00
Cracking the coding
interview
--Q9.3
题目原文:Givenasortedarrayofnintegersthathasbeenrotatedanunknownnumberoftimes,giveanO(logn)algorithmthatfindsanelementinthearray.Youmayassumethatthearraywasoriginallysortedinincreasingorder.EXAMPLE:Input:
Mars_NAVY
·
2014-03-06 22:00
国外IT网站
http://www.pixelstech.nethttp://programmer
interview
.comhttp://www.informationweek.com 第一个介绍文章。
net19880504
·
2014-03-05 23:00
技术
上一页
94
95
96
97
98
99
100
101
下一页
按字母分类:
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
其他