Click here to Skip to main content
15,880,427 members

Comments by Vishal D Kolekar (Top 18 by date)

Vishal D Kolekar 17-Jun-14 1:06am View    
I have same assumptions at my end but don't have any idea how to rectify it.
Do you have any idea or any link I can refer it?
Vishal D Kolekar 28-Sep-11 5:38am View    
I asked question becoz I heard this question first from my friend .
I didnt participated ????
Actully I want hint to solve such scenario ...
Vishal D Kolekar 23-Sep-11 10:05am View    
hey thanks for link man........
Vishal D Kolekar 23-Sep-11 9:47am View    
this is link where my friend get this question....

http://www.techgig.com/codingcontest_detail.php?season_id=3&type=entry
Vishal D Kolekar 23-Sep-11 9:45am View    
Thank you very much sir........

#include <iostream>
#include <string.h>
#include<conio.h>


void GetJumpCount(int climbUp,int climbDown,int noOfWalls,int wallHeights[])
{
//Write code here
int clu,cld,now,n,count;
count=0;
clu=climbUp;
cld=climbDown;
now=noOfWalls;
//wh[]=wallHeights[];
n=lenghtof.wallHeights[];
for(int i=0;i<n;i++)
{
="" int="" ht="0,temp=0;
" while(ht<(temp="clu-cld))
" if(temp="">ht)
{
count++;
break;
}
else
count++;
}
}
cout<<count;

}

void main()
{
clrscr();
GetJumpCount(10,1,1{10});
getch();
}