Counting how many times a word appears in a sentence
10 May 2022 1 minute read 0 comments Cooldudue
Hello everyone This is a question I got in a coding interview and while I know how to solve it in python, Java is a different beast. My approach was to split the sentence into an array of words and then check how many times a word appears in the arr...