Find Jobs
Hire Freelancers

solve question using recursion [JAVA]

$10-30 USD

Completed
Posted over 5 years ago

$10-30 USD

Paid on delivery
Question 1: solution must be with recursion. for a two dimensional array of positive integers how can I return the longest path (steps), so that the value in each cell of the longest path is from descending series of integers and the difference between each cell and cell is a given number (num). Assumes that n is a value of the cell so (n - num) is a positive number (not zero). can't use any loops (for,while,...etc) the Method: public static int longestPath(int matrix[][],int number){... return(__overloading__); } For example: int number=1; int [][]matrix ; matrix = new int[][]{{8, 15, 20, 33, 35}, {60, 59, 58, 32, 31}, {59, 17, 57, 56, 55}, {55, 15, 13, 58, 16}}; [login to view URL](" longestPath= "+ longestPath(matrix, num)); } if we search for the longest path with the difference number = 1 1-in the cell matrix[0][3] the path long is 3 and the value in this path is 33 -> 32 -> 31 ends in matrix[1][4] 2-in the cell matrix[1][0] the path long is for 6 and the value in the path 60 -> 59 -> 58 -> 57 -> 56 -> 55 ends in matrix[2][4] 3-in the cell matrix[1][0] the path long is 2 and the value in this path is 60 -> 59 ends in matrix[2][0] so the method must return the longest path witch its 6 if we search for the longest path with the difference number = 2 1-in the cell matrix[2][1] the path long is 3 and the value in this path is 17 -> 15 -> 13 ends in matrix[3][2] the method must return the longest path witch its 3.
Project ID: 18525053

About the project

10 proposals
Remote project
Active 5 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hello Sir/ Ma’am We are a group of Software Engineers having 10+ years of experience. Expert in JAVA, C, C++ , C# , Python, ANDROID,IOS, MATLAB, IONIC. Done 560+ projects here on FREELANCER.COM. Please check our profile for reference. Thank you
$30 USD in 1 day
4.8 (344 reviews)
7.6
7.6
10 freelancers are bidding on average $26 USD for this job
User Avatar
Hi There I've excellent programming and development skills and knowledge. I can provide an efficient, perfect, well documented development of your Programming and Computer project according to 100% accuracy and requirements, with dedicated support. Thanks Farah Saif
$30 USD in 1 day
5.0 (455 reviews)
7.0
7.0
User Avatar
Hello My name is Ahmed, i'm a top rated freelancer. i worked over 400 projects and over 700 hours doing java projects. plus i passed freelancer java v3 exam with score 3.75 plus i got 2 java certificate 1Z0-803 and 1Z0-804 with 3+ years experience. small overview of feedback on my profile "you want to get your projects completed with quality? Hire Ahmed. Highly recommended." "Thoroughly satisfied with Ahmed, and would recommend him to anyone looking for an excellent java developer!" "Highly recommended. Very smart and well experience" looking forward to work with you Regards
$35 USD in 1 day
4.9 (418 reviews)
6.6
6.6
User Avatar
HI, I'm an experienced programmer. I'm interested in your task and would like to do it. I'm available so contact me anytime to get started..................... Thanks.
$30 USD in 1 day
5.0 (17 reviews)
4.8
4.8
User Avatar
Hello, I've read your requirements for recursive solution, I can do this for you, feel free to contact me and ask anything regarding this. Hope you will get what you want. Thank You
$30 USD in 1 day
5.0 (2 reviews)
2.0
2.0
User Avatar
I have 5+ years of Java experience. I have read the description. I can start immediately and deliver you r code in couple of hours. Hope we can work together.
$20 USD in 0 day
5.0 (1 review)
1.2
1.2
User Avatar
I'm a software engineer
$25 USD in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
hello sir I have good experience in java under both windows and Linux I compile java code with cmd or terminal and I use eclipse and netbeans this project easy for me when I complete it you can check and then you can accept my bid
$15 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I will do it in 1 day with detailed explanation. And will assist you the way you require me. I hope I get the chance to do it. Thanks
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
hi, 10 dollars in 6 hours. please connect PS: any bid must be more than 100 characters and not chars
$15 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of ISRAEL
haifa, Israel
5.0
1
Payment method verified
Member since Sep 27, 2017

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.