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

bookChallenge: Grocery List Organizer

Task

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.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 5
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

bookChallenge: Grocery List Organizer

Swipe to show menu

Task

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.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 5
single

single

some-alt