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

bookChallenge: Find a Name

Tarea

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.

Solución

¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 2
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

Suggested prompts:

Can you explain this in simpler terms?

What are the main benefits or drawbacks?

Can you give me a real-world example?

close

bookChallenge: Find a Name

Desliza para mostrar el menú

Tarea

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.

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 2. Capítulo 2
single

single

some-alt