Skip to content
Snippets Groups Projects
Select Git revision
  • 9d17c52cfba8922e28e8ea4a9c4e5c16831a7f21
  • master default protected
  • vS5_2020-2021
3 results

crash_test_biblio.py

Blame
  • Forked from Derrode Stéphane / INF-TC2
    Source project has a limited visibility.
    listes-liees-boucle.py 283 B
    from LinkedList import *
    
    ll = LinkedList() # Ajout de données
    ll.push(20) 
    ll.push(4) 
    ll.push(15) 
    ll.push(10)
       
    # Création d'une boucle
    ll.head.next.next.next.next = ll.head; 
      
    if( ll.detectLoop()): 
        print ("Il y a une boucle !") 
    else : 
        print ("Pas de boucle ! ")