Difference: Code_EulerCircuit (1 vs. 3)

Revision 32005-11-18 - MatthewChan

Line: 1 to 1
 
META TOPICPARENT name="ProgrammingContest"
void recur(int now, list < int > :: iterator iter){

Revision 22005-11-18 - MatthewChan

Line: 1 to 1
 
META TOPICPARENT name="ProgrammingContest"
void recur(int now, list < int > :: iterator iter){
Line: 8 to 8
 // ans.clear(), recur(0, ans.begin());
Changed:
<
<
>
>
 

Revision 12005-11-17 - YuryKholondyrev

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="ProgrammingContest"
void recur(int now, list < int > :: iterator iter){
  for(int i = 0; i < n; i++)
    if(g[now][i]) g[now][i]--, recur(i, ans.insert(iter, i));
}
// ans.clear(), recur(0, ans.begin());

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback