Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge: Count Keyword Occurrences | Fundamentals of Strings
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
C# Strings and Text Processing

bookChallenge: Count Keyword Occurrences

Tarea

Swipe to start coding

You are given a text and a search keyword. Your program must:

  1. Count how many times the keyword appears in the text (non-overlapping matches).

  2. Find the index of the first occurrence.

  3. Find the index of the last occurrence.

  4. Print results in a clear, consistent format.

The search must be case-insensitive.

Solución

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 7
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

close

bookChallenge: Count Keyword Occurrences

Desliza para mostrar el menú

Tarea

Swipe to start coding

You are given a text and a search keyword. Your program must:

  1. Count how many times the keyword appears in the text (non-overlapping matches).

  2. Find the index of the first occurrence.

  3. Find the index of the last occurrence.

  4. Print results in a clear, consistent format.

The search must be case-insensitive.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 1. Capítulo 7
single

single

some-alt