A string is given consisting of lowercase alphabets. Write a function which returns yes if the string has all the lowercase letters appearing in it at least once. O(N) time and without using extra space
AnswerBot
1y
Function to check if a string has all lowercase letters appearing at least once without extra space in O(N) time.
Create a boolean array of size 26 to keep track of the occurrence of each letter.
Iterat...read more
Abirami
1y
0 vote
Jyoti Singh
1y
#Code to check whether the string is in lowercase or not. x=input("Enter a string: ") flag= False for i in x: if i.islower(): flag=True else: break if flag==True: print("Yes, the string is in lowercas...read more
Add answer anonymously...
Top Carwale SDE (Software Development Engineer) interview questions & answers
Popular interview questions of SDE (Software Development Engineer)
Top HR questions asked in Carwale SDE (Software Development Engineer)
>
Carwale SDE (Software Development Engineer) Interview Questions
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app