Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Grocery List Organizer | Working with Lists and Arrays
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
C# Lists & Collections

bookChallenge: Grocery List Organizer

Oppgave

Swipe to start coding

Practice your skills with lists by building a program that organizes a grocery list. You will write a function that takes an initial list of grocery items, adds new items, removes specified items, sorts the list, and returns the final sorted list.

  • Add all items from the itemsToAdd list to the grocery list.
  • Remove all items from the itemsToRemove list from the grocery list.
  • Sort the grocery list in ascending order.
  • Return the sorted grocery list.

Løsning

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 5
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

Suggested prompts:

Can you explain this in simpler terms?

What are the main points I should remember?

Can you give me an example?

close

bookChallenge: Grocery List Organizer

Sveip for å vise menyen

Oppgave

Swipe to start coding

Practice your skills with lists by building a program that organizes a grocery list. You will write a function that takes an initial list of grocery items, adds new items, removes specified items, sorts the list, and returns the final sorted list.

  • Add all items from the itemsToAdd list to the grocery list.
  • Remove all items from the itemsToRemove list from the grocery list.
  • Sort the grocery list in ascending order.
  • Return the sorted grocery list.

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 5
single

single

some-alt