Someday hope to meet u and ask for an autograph coz ya doing some pretty amazing job. Now everyone is getting into coding just coz of youtubers like you. Thanks.
I used a bit different approach. Declared two flags, isFirstBoolean and isSecondBoolean. Checked for first alphabet. If it is smaller then isSecondBoolean should be smaller and compared each alphabet to its corresponding ASCIi value. If first is Capital, then second should be either small or capital. Once we get the value of second flag i.e. isSecondCapital true or not. Compared with each alphabet. In any case it is giving false. Returning as false.
Cant we use this?runs fast ,space used might be more def capital_check(word): n=len(word) return (word.upper()==word) or (word.lower()==word) or (is_upper(word[0]) and word[1:].lower()==word[1:])
@@techdose4u for any product based company like Amazon, Goldman Sachs etc from where should we prepare for online coding questions.Becz that questions are different than which ask in interview.
I had already announced that I will upload ODD days solutions. I have limited time and resources. I hope you understdand :( If problem is repeated on ODD days then I will upload even days video.