Python Forum
--- Python lists and Linked Lists ---
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
--- Python lists and Linked Lists ---
#1
Star 
topic was closed thanks.
Reply
#2
How would doing it for you help you to learn?
Show us your work and where you are stuck
Reply
#3
Actually, I am not sure about any code I wrote. The code I wrote does not work at all and I was very stressed. I guess I cannot do this homework but I am very grateful for your help.
Reply
#4
A good article about linked lists and Python: https://realpython.com/linked-lists-pyth...nked-lists

They describe what a linked list is, explaining the collections.deque and they show an own implementation of linked lists.

If you don't have to implement your own linked list, you could use collections.deque.

Time measurement could be done with the timeit module.
My code examples are always for Python >=3.6.0
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  comparing 2 lists rwahdan 2 229 Jul-18-2021, 06:30 PM
Last Post: DeaD_EyE
  behavior list of lists roym 5 248 Jul-04-2021, 04:43 PM
Last Post: roym
  Create Dict from multiple Lists with duplicate Keys rhat398 10 568 Jun-26-2021, 11:12 AM
Last Post: Larz60+
  Better way to append frames from a video to multiple lists? Balaganesh 0 315 May-13-2021, 07:37 AM
Last Post: Balaganesh
  List of lists - merge sublists with common elements medatib531 1 541 May-09-2021, 07:49 AM
Last Post: Gribouillis
  Sort List of Lists by Column Nju 1 482 Apr-13-2021, 11:59 PM
Last Post: bowlofred
  ''.join and start:stop:step notation for lists ringgeest11 1 437 Apr-08-2021, 04:29 PM
Last Post: BashBedlam
  lists JimLake 10 963 Apr-06-2021, 01:50 PM
Last Post: jefsummers
  Lists + Empty Lists Pytho13 15 1,242 Mar-26-2021, 08:52 PM
Last Post: pythonprogrammer1101935
Question How to print multiple elements from multiple lists in a FOR loop? Gilush 6 674 Dec-02-2020, 07:50 AM
Last Post: Gilush

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020