Re:How Firebase Interviewed Software Engineers
by ttlei on Thursday September 26, 2019 @03:19PM
(#21084461)
I checked out the Gold Mine problem on geeksforgeeks (assuming it is the same problem at firebase). Can you explain why it is "potentially impossible" to get the optimal solution?
[ Parent
| on HN ]
Re:How Firebase Interviewed Software Engineers
by mayop100 on Thursday September 26, 2019 @03:42PM
(#21084705)
That's a different problem than the one we used. We added some additional complexity that required a search of the entire solution space to get a provably optimal answer, and then we made the maps & allowed # of moves large enough that brute force was impossible. So people had to build sub-optimal search solutions that pruned in intelligent ways.
Re:How Firebase Interviewed Software Engineers
by estomagordo on Friday September 27, 2019 @03:22AM
(#21089325)
Is the problem (statement, input and hopefully leaderboard) available online somewhere?
I figure it hasn't been used for recruiting in a long time, so there shouldn't be any downside of that nature to it being so. But there is the invested time in making it available, of course.
I hardly think I would be the only one thriled to try it just for fun. It would probably provide a great deal of goodwill for you guys, as well as further the industry's understanding of what constitutes a good take-home problem.
Re:How Firebase Interviewed Software Engineers
by ScottBurson on Thursday September 26, 2019 @04:07PM
(#21084948)
Did anyone use a SAT solver?
Re:How Firebase Interviewed Software Engineers
by commandlinefan on Thursday September 26, 2019 @06:00PM
(#21086051)
I took a quick look at it just now myself - it looks like it'd be pretty straightforward to solve by just brute-forcing every possible solution. Or is there some tortoise-hare type of "trick" I'm supposed to come up with?
Re:How Firebase Interviewed Software Engineers
by joking on Friday September 27, 2019 @06:25AM
(#21090308)
The firebase problem states that there is no optimal solution. so it can be as easy as increasing the size of the gold mine in a way that a brute force solution it's not posible and you must find sub optimal maximums applying heuristics. The travelling salesman problem has a lot of literature to understand this kinds of problems that are usually some variations of this problem originally stated near 200 years ago.