Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Find a Name | Searching and Filtering Arrays
Quizzes & Challenges
Quizzes
Challenges
/
C# Arrays

bookChallenge: Find a Name

Завдання

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.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 2
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

close

bookChallenge: Find a Name

Свайпніть щоб показати меню

Завдання

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.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 2
single

single

some-alt