Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency
Q
?
A -
Informatica
search
Login
Remember
Register
New Activity
Questions
Unanswered
Tags
Categories
Users
Course
News
FAQs
Do you need help?
Ask a Question
Notice Board
Situazione finale voti HW
Eserciziario Python
WTF Python!
Exams
Test
Grades
Attachments
Esame 6-11-19
check
RECUPERO Homework 1
link
RECUPERO Homework 2
link
RECUPERO Homework 3
link
RECUPERO Homework 4
link
Esame 19-9-19
check
link
Esame 16-7-19
check
link
Esame 24-6-19
check
link
Esame 10-4-19
check
link
Esame 31-1-19
check
link
Esame 8-1-19
check
link
Homework 4
link
Homework 3
check
link
Homework 2
check
link
Homework 1
check
link
1.162
questions
1.988
answers
3.710
comments
591
users
Related questions
"Kernel died" Es1 Hw4
[RISOLTO] - Velocizzare Hw4 es1
errore in es1 hw4 quando lo runno
Most popular tags
esercizio3
homework3
es3
homework
es2
hw3
homework1
es1
homework4
esercizio1
homework2
esercizio2
avvisi
hw4
peer-assessment
hw2bis
python
hw4bis
problema
hw3bis
prova-di-esame
homework-di-recupero
hw2
voti
esame
test
ricorsione
consegna
hw1bis
tempi
aiuto
homework2bis
errore
librerie
dizionari
scadenze
attore
feedback
consigli
risultati
liste
oggetti
metodi
esercizio
program_03
bonus
efficienza
ricalcolo-classifica
leggibilità
zip
Categories
Announcements
(13)
Intro. to Programming and Lab AA22-23 (Latina)
(14)
Programming AY20-21
(123)
Programming AY21-22
(205)
Programming AY22-23
(296)
Programming AY23-24
(182)
Fondamenti di programmazione AA18-19
(1.2k)
Info sul corso e sugli esami
(278)
Homework
(650)
Homework 1
(165)
Homework 2
(149)
Homework 3
(216)
Homework 4
(120)
Es1
(48)
Es2
(26)
Es3
(46)
Programmare in python
(31)
Avvisi
(65)
Homework di recupero
(138)
Fondamenti di Programmazione AA19-20
(436)
Fondamenti di Programmazione AA20-21
(709)
Fondamenti di programmazione AA21-22
(366)
Fondamenti di programmazione AA22-23
(564)
Fondamenti di programmazione AA23-24
(350)
Other
(26)
Anni precedenti
(784)
Architetture degli elaboratori AA20-21
(3)
BUG BOUNTY / IMPROVEMENTS
(4)
hw4 es1: numero di nodi
a
ares.angeloni
(1060 points)
11
24
37
asked
Dec 22, 2018
in
Es1
by
ares.angeloni
(
1.1k
points)
recategorized
Dec 23, 2018
by
andrea.sterbini
consigli per tenere traccia del numero di nodi trovati che siano diversi dalla brutale variabile contatore?
347
views
5
answer
Please
log in
or
register
to answer this question.
2
Answers
marco.giuliani
(23860 points)
4
13
62
answered
Dec 23, 2018
by
marco.giuliani
(
23.9k
points)
Puoi metterli dentro ad un insieme e usare la sua lunghezza alla fine. Così oltre ad averne il numero, hai anche i nodi stessi
4
comment
a
ares.angeloni
(1060 points)
11
24
37
commented
Dec 23, 2018
by
ares.angeloni
(
1.1k
points)
per i nodi in realtà io mi salvo direttamente i dati nella forma del dizionario che poi dovrò restituire, aggiungere questo sarebbe un enorme spreco, ma è gia un idea c:
marco.giuliani
(23860 points)
4
13
62
commented
Dec 23, 2018
by
marco.giuliani
(
23.9k
points)
Se usi un dizionario allora usa la lunghezza del dizionario e stai apposto
Please
log in
or
register
to add a comment.
_andrea_
(45670 points)
13
42
297
answered
Dec 23, 2018
by
_andrea_
(
45.7k
points)
Se te li salvi in un dizionario ti basta tornare la len del dizionario. E comunque un contatore non aggiungerebbe chissà quale peso al programma
2
comment
Please
log in
or
register
to add a comment.