Grimson
Optimizing a c# solution (algorithm)
So far I have read up on dynamic programing, but since the results produced in one recursion call is never utilized again, I believe that's not the best approach.
I have also tried reading up on some matrix exponentiation, but since the result depends on variable number of children, I can't think of any idea to optimize this
10 replies
Optimizing a c# solution (algorithm)
I already converted it to c# here https://github.com/AnmolSinha1201/Orbit but apparently it can be improved further in terms of algorithm
10 replies
✅ Use of Unassigned local variable?
For reference, I am following this https://observablehq.com/@mpcowan/day-6-universal-orbit-map
7 replies
✅ Use of Unassigned local variable?
It said line 6. Specifially
var total = TotalNumberOfOrbits(root);
. But since then, I have realized that class files work very different from the top level program.cs. Moving the dictionary declaration fixed the issue7 replies