This is basically just string manipulation 101. I don’t know what else to say. There’s no wizardry here.
Submission Details
Runtime: 0ms faster than 100.00% of Java online submissions
Other than that, I’ve started doing the MySQL challenges which are definitely harder than they lead you to believe. What’s insulting is that leetcode proclaims them to be the easiest problems they have. Well, that’s a load of shit. I know my way around basic SQL no sweat but I’ve had to Google SQL functions for almost every single one of these.