Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Challenge: Find a Name | Searching and Filtering Arrays
C# Arrays

bookChallenge: Find a Name

Tehtävä

Swipe to start coding

Practice searching arrays by checking if a specific name exists in a list of registered users. Complete the NameExists function so that it returns true if the targetName is found in the users array, and false otherwise.

To complete this task, follow these steps:

  • Loop through each element in the users array.
  • Compare each element with the targetName.
  • If a match is found, return true.
  • If the end of the array is reached without finding a match, return false.

Ratkaisu

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 2. Luku 2
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

close

bookChallenge: Find a Name

Pyyhkäise näyttääksesi valikon

Tehtävä

Swipe to start coding

Practice searching arrays by checking if a specific name exists in a list of registered users. Complete the NameExists function so that it returns true if the targetName is found in the users array, and false otherwise.

To complete this task, follow these steps:

  • Loop through each element in the users array.
  • Compare each element with the targetName.
  • If a match is found, return true.
  • If the end of the array is reached without finding a match, return false.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 2. Luku 2
single

single

some-alt