java - I can't seem to find the right Collection for my case. Thinking about list of hashmap of list, which appears very abstract -
i'm trying write programm challenge: https://www.reddit.com/r/dailyprogrammer/comments/2hcwzn/09242014_challenge_181_intermediate_average_speed/
basically, i've gotte point cars pass 4 cameras, , want save time every car has passed specific camera individually.
so far thought process list of hashmap of lists, feel i'm thinking abstract, because not feeling safe collection use @ time (thats why i'm doing exercise mostly).
basically, list consist of various hashmaps of lists. "lowest" lists contain 4 time dates specific car ( data camera one, data camera two, , on). attach list hashmap, have specific plate of car key. "highest" collection list include hashmaps, list store car plates store data each camera.
i feel made little bit hard follow, painted mindmap you: https://i.imgur.com/sxgltvx.png
i hope can point me in right direction.
for speed limit, need number... maybe use double
?
cameras, need array or list of distance (int
s). either adt fine
track if car speeding, can use map<string,date>
record last position. then, process each set of camera data, can use map
last data, speeding calculations, , put new data map
when you're processing next camera data, date.
that's how might design it... make sense?
Comments
Post a Comment