Großartig!
Completion Rate verbessert auf 4.76Abschnitt 1. Kapitel 7
single
Challenge: Count Keyword Occurrences
Swipe um das Menü anzuzeigen
Aufgabe
Swipe to start coding
You are given a text and a search keyword. Your program must:
-
Count how many times the keyword appears in the text (non-overlapping matches).
-
Find the index of the first occurrence.
-
Find the index of the last occurrence.
-
Print results in a clear, consistent format.
The search must be case-insensitive.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 7
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen