mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-17 01:01:41 -04:00
fix(curriculum): remove first person language from linked list class workshop (#67391)
Signed-off-by: Deepak.S <deepak.s.workdesk@gmail.com> Co-authored-by: majestic-owl448 <26656284+majestic-owl448@users.noreply.github.com>
This commit is contained in:
@@ -7,7 +7,7 @@ dashedName: step-8
|
||||
|
||||
# --description--
|
||||
|
||||
Let's test your linked list so far! At the bottom of your code, create an instance of `LinkedList` called `my_list`. Then, using the `is_empty` method you created in the last step, print `my_list.is_empty()`.
|
||||
It's time to test your linked list so far! At the bottom of your code, create an instance of `LinkedList` called `my_list`. Then, using the `is_empty` method you created in the last step, print `my_list.is_empty()`.
|
||||
|
||||
# --hints--
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ dashedName: step-15
|
||||
|
||||
# --description--
|
||||
|
||||
Great! Now let's test adding elements to your linked list. At the bottom of your code, after creating an instance of `LinkedList` called `my_list` and printing `my_list.is_empty()`, add `1` and `2` to the list using the `add` method.
|
||||
Great! Now it's time to test adding elements to your linked list. At the bottom of your code, after creating an instance of `LinkedList` called `my_list` and printing `my_list.is_empty()`, add `1` and `2` to the list using the `add` method.
|
||||
|
||||
Then, print `my_list.is_empty()` again to confirm that the list is no longer empty. Finally, print `my_list.length` to see the current length of the linked list.
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ dashedName: step-24
|
||||
|
||||
# --description--
|
||||
|
||||
Now, let's test removing an element from your linked list. At the bottom of your code, remove `1` from the list using the `remove` method. Then, print `my_list.length` again to see the updated length of the linked list.
|
||||
Now, it's time to test removing an element from your linked list. At the bottom of your code, remove `1` from the list using the `remove` method. Then, print `my_list.length` again to see the updated length of the linked list.
|
||||
|
||||
With that, the linked list data structure workshop is complete!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user