4 ms·
lol i just did the interview and failed. had to find shortest path between tesla chargers. all in C++. completed it but failed
by soulslicer0 7y ago
lol i just did the interview and failed. had to find shortest path between tesla chargers. all in C++. completed it but failed
- deleted 7y ago[deleted]
- lsh 7y agoyou were supposed to bore a tunnel directly between the two points
- mkagenius 7y agojeez, trick question
- karpathy 7y agoVery likely not for the positions above! (they all focus on Python)
- f00_ 7y agoCould you have just used dijkstra or breadth first search?
- ars 7y agoHow does that work? Where you given the algorithm to use? Or was it really a data science question, rather than a programming question?
- meheleventyone 7y agoWithout more details it sounds like an algorithm problem you'd be expected to solve from prior knowledge. Stuff like a breadth first search from the start point, up through various path finding algorithms to applying heuristics (I believe route finding on roads exploits the road topology).