Oracle Interview Questions
分类:
数据库 时间:
2014-11-25 14:10:25
阅读次数:
248
Oracle Interview Questions
分类:
数据库 时间:
2014-11-25 14:08:53
阅读次数:
348
Oracle Interview Questions
分类:
数据库 时间:
2014-11-25 14:07:57
阅读次数:
312
Oracle Interview Questions
分类:
数据库 时间:
2014-11-25 14:07:04
阅读次数:
311
Oracle Interview Questions
分类:
数据库 时间:
2014-11-25 14:06:38
阅读次数:
324
3.3Imaginea(literal)stackofplates.Ifthestackgetstoohigh,itmighttopple.Therefore,inreallife,wewouldlikelystartanewstackwhenthepreviousstackexceedssomethreshold.ImplementadatastructureSetOfStacksthatmimicsthis.SetOfStacksshouldbecomposedofseveralstacks,andsho..
分类:
其他好文 时间:
2014-11-25 02:01:22
阅读次数:
201
3.4IntheclassicproblemoftheTowersofHanoi,youhave3rodsandNdisksofdifferentsizeswhichcanslideontoanytower.Thepuzzlestartswithdiskssortedinascendingorderofsizefromtoptobottom(e.g.,eachdisksitsontopofanevenlargerone).Youhavethefollowingconstraints:(A)Onlyonedis..
分类:
其他好文 时间:
2014-11-25 02:00:22
阅读次数:
115
3.1Describehowyoucoulduseasinglearraytoimplementthreestacks.3stacks?separatethearrayinto3sections.Use3index.push(intstack,Tt)
{
validateStackNum(stack);//Validate(stack>=0&&stack<2);
intpos=stackPos[stack];
check(pos+1);//ifexceeds,enlargeth..
分类:
其他好文 时间:
2014-11-24 12:09:27
阅读次数:
161
3.2Howwouldyoudesignastackwhich,inadditiontopushandpop,alsohasafunctionminwhichreturnstheminimumelement?Push,popandminshouldalloperateinO(1)time.Useanotherstackmaintainingmin.
push(Tt)
{
mainStack.push(t);
TcurMin=minStack.peek();
if(curMin==null||t<curM..
分类:
其他好文 时间:
2014-11-24 12:08:38
阅读次数:
183
2.2Implementanalgorithmtofindthenthtolastelementofasinglylinkedlist.//Assumetheinputlisthasnocircle.
//O(n)
NodefindNthNodeToLast(Noderoot,intn)
{
//Findsize
Noden=root;
intsize=0;
while(n!=null)
{
size++;
n=n.next;
}
if(n>size)
returnnull;
intnFromThe..
分类:
其他好文 时间:
2014-11-24 08:44:50
阅读次数:
126