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
C# Lists & Collections

bookChallenge: Grocery List Organizer

Opgave

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

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 5
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

close

bookChallenge: Grocery List Organizer

Stryg for at vise menuen

Opgave

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 desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 5
single

single

some-alt