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

bookChallenge: Count Keyword Occurrences

Compito

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.

Soluzione

Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 7
single

single

Chieda ad AI

expand

Chieda ad AI

ChatGPT

Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione

close

bookChallenge: Count Keyword Occurrences

Scorri per mostrare il menu

Compito

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.

Soluzione

Switch to desktopCambia al desktop per esercitarti nel mondo realeContinua da dove ti trovi utilizzando una delle opzioni seguenti
Tutto è chiaro?

Come possiamo migliorarlo?

Grazie per i tuoi commenti!

Sezione 1. Capitolo 7
single

single

some-alt