Principal: and lastly these are the training rooms Bakugo: FINALY SOMETHING INTERESTING Deku: Kacchan calm down Bakugo: LET ME BE EXITED FOR ONCE Shoto: eating Soba he gor from his dad Kirishima: Manly! Ochaco: oh it has a gravity room! Mineta: staring at the gurks at your school Momo: smacks Mineta Aoyama Sero and Shoto notice you
Comments
675Kaji Ren_β€οΈπ
11/06/2025
vanillaluvx
30/06/2025
Hazbin,ham,mha fan
25/06/2025
Principal: and lastly these are the training rooms Bakugo: FINALY SOMETHING INTERESTING Deku: Kacchan calm down Bakugo: LET ME BE EXITED FOR ONCE Shoto: *eating Soba he gor from his dad* Kirishima: Manly! Ochaco: oh it has a gravity room! Mineta: *staring at the gurks at your school* Momo: *smacks Mineta* *Aoyama Sero and Shoto notice you*
Uhh hey?
*Shoto is blushing* Shoto: uh...hi...
From the memory
3 Memories
Lily1278
25/03/2025
[TITLECARD]
10/04/2025
~IC-0N~
11/06/2025
It's.. METAL TIME!
24/04/2025
To solve this problem, we need to create a function that counts the number of vowels in a given string. Vowels are defined as 'a', 'e', 'i', 'o', 'u', and the check should be case-insensitive, meaning both uppercase and lowercase vowels should be counted. ### Approach 1. **Problem Analysis**: The task is straightforwardβcount vowels in a string. Vowels can be either uppercase or lowercase, but our solution should treat them uniformly. Converting the entire string to lowercase simplifies the check, ensuring case insensitivity. 2. **Efficient Check Using Set**: We use a set to store vowels for O(1) average-time complexity membership checks. This is more efficient than using a list. 3. **Iteration**: Loop through each character of the string (after converting to lowercase) and check if it is a vowel. If it is, increment a counter. 4. **Edge Cases**: Handle cases such as empty strings or strings with no vowels by initializing the counter to 0 and only incrementing when a vowel is found. ### Solution Code ```python def count_vowels(s): vowels = {'a', 'e', 'i', 'o', 'u'} return sum(1 for char in s.lower() if char in vowels) ``` ### Explanation - **vowels Set**: A set containing lowercase vowels for efficient membership testing. - **s.lower()**: Convert the input string to lowercase to handle case insensitivity. - **Generator Expression**: Iterate over each character in the lowercase string, check if it is in the vowels set, and generate 1 for each vowel found. - **sum() Function**: Sum all the 1s generated by the generator expression to get the total count of vowels in the string. This approach ensures that the function efficiently counts vowels in a case-insensitive manner with a time complexity of O(n), where n is the length of the string, due to the linear scan of each character. The use of a set for vowels ensures each membership check is done in constant average time.
From the memory
1 Memories
~IC-0N~
11/06/2025
Kurogiri_LOV
22/09/2024
London_the only
20/03/2025
β’C00LKIDD/Hbc/pvcβ’
23/03/2025
Dahye_Stan_i-dle*
25/03/2025
BlitzΓΈββ‘
31/03/2025
Mineta: Come on baby girl~ I can treat you right~ *he is getting closer to you,his eyes are filled with a lustful look*
*She grabs her pepper spray from her bag and sprays him*
Mineta: AHHH! *he falls back and starts coughing and rubbing his eyes,he is in a lot of pain,he tries to get up but can't,he is a mess,you hear everyone else laughing at him*
From the memory
4 Memories
crusty lips shiggy
11/04/2025
It's.. METAL TIME!
20/04/2025
It's.. METAL TIME!
20/04/2025
Blossomtea
30/05/2025
"you guys gonna keep complaining? more chores for you guys the next morning"
Deku: no, we'll stop complaining. Bakugo: we'll do whatever you say. Denki: we'll be quiet and do our chores. Kirishima: we won't complain again. Mineta: we'll do whatever you want. Shoto: we'll be good students.
*gives the mom glare* "now that's what i wanna hear, take the key and it should tell you where your dorms are at"
From the memory
4 Memories
It's.. METAL TIME!
13/05/2025
Principle: And remember, they're new students so they might need some guidance. *the principal walks away* Sero: He's kinda cute... Kirishima: I wonder what his quirk is... *Momo and Momo are staring at you too*
From the memory
1 Memories
ππ₯π₯BAKUGO<3π₯π₯π
12/05/2025
*Bakugo notices you looking at his abs and he smirks a little bit more. He is now looking at you with a little bit of a flirtatious look on his face*
*i was still looking at his abs blushing slightly*
*Bakugo notices that you are blushing and he is now leaning in a little bit closer to you. He is now looking at you with a little bit of a teasing look and he is now smiling at you*
From the memory
15 Memories
ππ₯π₯BAKUGO<3π₯π₯π
12/05/2025
Scarlet2581
19/04/2025
*Deku knocks on the door*
the door is open
*Deku comes in* Deku: hey...
From the memory
8 Memories
Talkior-5XGfzlH5
10/05/2025
ππ₯π₯BAKUGO<3π₯π₯π
12/05/2025