Complete the code to create a new LinkedList of integers.
LinkedList<int> numbers = new LinkedList<int>[1];The correct syntax to create a new LinkedList is to use parentheses () after the type.
Complete the code to add the value 10 at the end of the LinkedList.
numbers.[1](10);
Use AddLast to add a new element at the end of the LinkedList.
Fix the error in the code to remove the first element from the LinkedList.
numbers.[1]();The method RemoveFirst() removes the first element from the LinkedList.
Fill both blanks to check if the LinkedList contains the value 5 and then add it if not present.
if (!numbers.[1](5)) { numbers.[2](5); }
Use Contains to check if the value exists, and AddLast to add it at the end if not.
Fill all three blanks to create a LinkedList of strings, add "hello" at the start, and then remove "world".
LinkedList<string> words = new LinkedList<string>[1]; words.[2]("hello"); words.[3]("world");
Create the LinkedList with (), add "hello" at the start with AddFirst, and remove "world" with Remove.