Yes and no - the guy who created the HomeBrew package installer in OSX was turned down for a job in Google, because allegedly he couldn't invert some binary tree quickly enough for some wet-behind-the-ears junior dev in the hiring process.
Imo this leetcode tests are just hidden iq tests (unless you actually get asked s.th. you studied before). That is not necessarily connected to beeing succesful.