How to index a recursion loops in java -
my code has recursive method (generating_circles
) generates 3 circles randomly (c1
, c2
, c3
), each circle represented 3 parameters p1
, p2
, p3
, circles tested 1 one according specific condition, let me say, if circle c1
didn't satisfy condition test, method (generating_circles
) called again generate new 3 circles (c4
, c5
, c5
) inside circle c1
, , same procedure carried on new 3 circles , on more circles generated recursively until condition satisfied, moving work second original circle c2
, on.
my problem can't retrieve proper indexes of nested circles , parameters related each circle.
so thankful if gives me idea of how index circles , parameters future work.
Comments
Post a Comment