Average Word Length
guys I solved this question and I'm 100% positive I did it perfectly. Can anyone tell me if there's something you can see but I can't ? here is my code https://code.sololearn.com/chLUoNm885Xc
You should use regular expression in the replaceAll() method. Something like that: String str3= str.replaceAll("[ ,.!?]", ""); Coding Cat is right.
AmmarTerRAM question asks to remove all punctuation as well . Or just don't count them.
It looks good with ceilling. Only case #1 fails. That's because of the question mark at the end (.... that?). Don't count any punctuation!
AmmarTerRAM rounding up to the nearest whole number is what ceil do . round will give you 5 instead of 6 as shown in example in the question.
this is the question https://www.sololearn.com/coach/73?ref=app
Martin Taylor is right , question asks to round up (ceil). Can't understand why would anyone dislike his answer.
Abhay I used ceil but still it gives me wrong test cases, any idea why?
blackjack on c
self parameter in python class
How to read this?
How does this works?