Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Count Keyword Occurrences | Fundamentals of Strings
C# Strings and Text Processing

bookChallenge: Count Keyword Occurrences

Tarefa

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.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 7
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

close

bookChallenge: Count Keyword Occurrences

Deslize para mostrar o menu

Tarefa

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.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 1. Capítulo 7
single

single

some-alt