Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Interview-Questions A small programming task, plz respond at the ealiest..
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Sameer
A small programming task, plz respond at the ealiest..
0 Answer(s)      a year and 3 months ago
Posted in : Java Interview Questions


Hi Guys ,small task to you all... sam seeks your help to know the longest run possible with the given peaks. That altitude of different peaks is given by a grid of numbers. Look at this example:

7 2 3 4 5 36 37 38 34 6 33 44 46 40 7 24 43 42 41 8 35 32 47 30 9

One can ski down from one peak to a connected peak if and only if the height decreases. One peak is connected to another if it's at left, at right, above or below it. In the sample map, a possible ski path would be 36-33-24(start at 36, end at 24). Of course if one would ski 46-44-43-42-41-30-9....3-2, it would be a much longer run. In fact, it's the longest possible. There could be more than one longest ski path, but all sam needs from you is to tell maximum number of peaks he could cover for a given map, in this case it is 14. ALL INPUTS comes from input.txt file.


Advertisement
View Answers

Related Tutorials/Questions & Answers:
A small programming task, plz respond at the ealiest..
A small programming task, plz respond at the ealiest..  Hi Guys ,small task to you all... sam seeks your help to know the longest run possible with the given peaks
sir plz do respond to my problem immediately - Java Beginners
sir plz do respond to my problem immediately  Hello sir, Iam very happy that you have responded to my problem.The code u sent... code(sent by you).plz inject that code into my browser code so that it can show
Advertisements
sir i want small project with of health care system with struts and hibernate plz help me
sir i want small project with of health care system with struts and hibernate plz help me  sir i want small project on health care system with struts and hibernate plz help me
task 1 - Java Beginners
task 1  Please write a Java client that send a small letters string to a Java server which convert it to uppercase letters and send it back to the client. Please submit both the client and server programs  Hi Friend
Java task scheduling
Java task scheduling  What is a task?s priority and how is it used in scheduling
Java task scheduling
Java task scheduling  What is a task?s priority and how is it used in scheduling
Small clarification
Small clarification  This function is used to search and select particular word. In this function document.getElementById('d')); getElementById is used to get the element by using id,but here there is no id with 'd', what
Java Timer Task
Java Timer Task  How to assign a task in java at specified date & time (with seconds) using threads
PHP Functions
3.11. Functions Function provides power to any programming language. It works like a small machine to perform any task between the programs. In PHP, Function is the real power which can be created and utilized as per the programming
task 2 - Java Beginners
task 2  Write a time server that follows the time protocol outlined in RFC 868. When a client connects, the server sends a 4-byte, big-endian, unsigned integer specifying the number of seconds that have passed since 12:00 A.M.
small query - JSP-Servlet
small query  how to set value to textbox on browser side which is retrived from the database?  Hi friend, Plz explain problem in details which technology you have used e.g. JSP/Servlet/Java etc... For more
please do respond to my problem sooooon sir - Java Beginners
please do respond to my problem sooooon sir  Hello sir, Sir i have executed your code and i got the result but the problem is whenever i click on the link in my browser the link is opened in the internet explorer.i need
plz plz plz inform me as soon as possible
plz plz plz inform me as soon as possible  ``by using c programs how to type
Solving task 1 by 1 from bundle of task data
Solving task 1 by 1 from bundle of task data  Hello and namaste guys... of row.row means task.in each task, there will be an information like userid, Taskid, user_input i have to use the information for eash task to solve the task
Small business administration classes
Small business administration classes  Hi, How Small business...   Hi, The manage of any small business are doing a lot of different types... process of the business. So, if you are a manager of small business then you
Small Business Marketing Services
Web design and programming comapnies Small Business Marketing Services offers...Small Business Marketing Services These days Small Business around the work is looking for cheap, reliable and result oriented Small Business Marketing
small code - JDBC
small code  Hi Team, I want to write program for my team in this code i have list of websites when ever this site is down this code shows site is down message and if site is up it will give message site is up. Thanks
plz help
plz help  what is the procedure and code to design an interactive GUI in java using swings
Plz Help
Plz Help  Hello Guys!! Plz. Help I need to write a program to display the astrological sign based on your birthday for example If we enter the date of birth in the following format from console--13/08/1990 it should give you
Task Tag Decorator
Task Tag Decorator         In large projects there are a lot of task tags like TODO, FIXME, etc. and Eclipse provides only plain list of all these task tags which I
plz give me answer plz
plz give me answer plz  writw a programme to find rank from an array using doubledimmensionalarray
plz plz rply as soon as possible
plz plz rply as soon as possible  by using c programs * * * * * s s s s s * s s o s s s s s s s s s s s s s s s s s s s s s s s
How to disable task manager using java
How to disable task manager using java  How to disable task manager using java
Programming
Programming  Given a number n, write a programming to determine its square root if it is possible, in the contraly case print an appropriate massege on the screen
programming
Java Constructor programming for single and double constructor  write a program which have no argument constructor ,single parameter constructor constructor,double parameter constor,and the now when we create a object
Scheduling a Timer Task
Scheduling a Timer Task       In this section, you can learn how to schedule a timer task to run.... This program asks you for the way of performing the task whether at the certain
Task manager enable and disable thru java
Task manager enable and disable thru java  I would like to know, how to enable and disable task manager using java. Kindly, please Let me know
Cloud Computing Solutions for Small Business
Cloud Computing Solutions for Small Business  Hi, Which Cloud Computing Solutions for Small Business is good. How to choose best Cloud Computing Solutions for Small Business. There are many small business around the world
Small program code - Java Beginners
Small program code  Develop the echo server and the echo client program that display whatever is typed in the server on to the client
Small typo at SCJP Module-1 Question-6
Small typo at SCJP Module-1 Question-6  Hi Team, This is a awesome site which is serving lot of peoples in learning java effectivly, thanks alot for that, A small typo at "SCJP Module-1 Question-6", in spite of "a.method
Advertisements
 

 

 

DMCA.com