Solved 1 optimally. Couldn't solve 2 within the remaining time. Only finished building the graph. So a rejection incoming.
Edit: Recently got pushed to onsite. So in facebook too communication about your thought process matters quite a bit.