Skip to content
Snippets Groups Projects
Select Git revision
  • 54a2dc609410c94d668144015dcdd269d3b7e5c8
  • master default protected
2 results

graphviz.ipynb

Blame
  • Forked from Vuillemot Romain / INF-TC1
    Source project has a limited visibility.
    listes-liee-boucle.py 283 B
    from liste_liee import *
    
    ll = liste_liee() # 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 ! ")