Sort nearest sorted k array. Wasn’t difficult. Then 2 nd one was house robber. Direct from let code and gfg. Practice commone qs. No issues. Just solved one of them. Couldn’t solve the other due to less time.
Check out your Company Bowl for anonymous work chats.