❔ C# Recursion Output problem
Here's a piece of code (formatted by benqbenq) in C# for finding the sum of triplets that are closest to 1. The code outputs the sum, but I want it to output the triplets that produced the sum. I'm a noob at C# and recursion is difficult, can anyone help?
3 Replies
You gotta drag either the 3 indices or the three numbers itself through your recursive calls
So add either of those to the parameter list of your recursive function. Then you gotta figure out, how to populate them
thank you
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.