M
matthias s.
hi,
as a self-taught programmer I've got little clue about coding patterns and
general algorithms. so I'm asking here hoping to improve my skills:
I've got a large array of objects, say Car(s) where a Car has got a MaxSpeed
and Brand property. How would I go most effectively to search the array for
the car with a Brand equal to 'Ferrari' and the highest MaxSpeed?
It's not that I couldn't code it, but with your help, I probably could code
it cleaner/faster.
Thanks for your time!
/matthias
as a self-taught programmer I've got little clue about coding patterns and
general algorithms. so I'm asking here hoping to improve my skills:
I've got a large array of objects, say Car(s) where a Car has got a MaxSpeed
and Brand property. How would I go most effectively to search the array for
the car with a Brand equal to 'Ferrari' and the highest MaxSpeed?
It's not that I couldn't code it, but with your help, I probably could code
it cleaner/faster.
Thanks for your time!
/matthias