Skip to content

JeffreySunjay4044/swiggy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Assumptions:

I have assumed distance for delivery cannot exceed 1000kms (just for sake)
Same goes with time (both de idle time and order waiting time)
I have assumed priorites as indexes like say 37.5 for distnce
boundaryDistance:1000
boundaryDETime:180
boundaryOrderTime:180
priorityDist:37.5
priorityDETime:33.5
priorityOrderTime:29.5

And given a list I have created a ranking system and heap based structure for distributing orders.



Please find config.properties for information and for changing assignment priority.
Input of list and orders are given as json files and have used mapper to map it to respective classes.

About

Swiggy hackerrank

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages