Home > other >  Ask a question of "circuit wiring"
Ask a question of "circuit wiring"

Time:12-26

Title bar with online classic "circuit wiring problem is the same:" on both ends of a piece of circuit board up and down, respectively, have n terminal, according to the circuit design, asked to use wire (I, C (I)), the upper terminal I connected with the bottom terminal C (I), wire (I, C (I)) called the article I the attachment on the circuit board, k (I) (1 & lt;=i<=n) is the line I rather than on the right side of the line (I My question is: if you are deduced by k (I) C (I)? "Data structure, algorithm and application of Sartaj Sahni, c + + language to describe" the answer is "for (int w=n; W> 0; [w] w -) L.I nsert (k, w);" In which L is LinearList (simple queue), the answer is correct, but does not give the algorithm of logic, that is what I want to know,,,
  • Related