Grimson
Grimson
CC#
Created by Grimson on 8/2/2024 in #help
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
CC#
Created by Grimson on 8/2/2024 in #help
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
CC#
Created by Grimson on 8/2/2024 in #help
✅ Use of Unassigned local variable?
But our professor said that it can be optimized and I'm trying to think of a solution to do that
7 replies
CC#
Created by Grimson on 8/2/2024 in #help
✅ Use of Unassigned local variable?
7 replies
CC#
Created by Grimson on 8/2/2024 in #help
✅ Use of Unassigned local variable?
Also, my optimization idea was wrong. So I'm trying new ways to optimize the solution
7 replies
CC#
Created by Grimson on 8/2/2024 in #help
✅ 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 issue
7 replies
CC#
Created by Grimson on 8/2/2024 in #help
✅ Use of Unassigned local variable?
Also, I believe I was wrong, my caching strategy doesn't work. Do you guys have any opinions?
7 replies
CC#
Created by HouseAdmin on 8/2/2024 in #help
✅ What syntax for c#?
gl
39 replies
CC#
Created by HouseAdmin on 8/2/2024 in #help
✅ What syntax for c#?
You can't really alias &&
39 replies
CC#
Created by HouseAdmin on 8/2/2024 in #help
✅ What syntax for c#?
not really
39 replies
CC#
Created by HouseAdmin on 8/2/2024 in #help
✅ What syntax for c#?
Can you do that in JS?
39 replies
CC#
Created by HouseAdmin on 8/2/2024 in #help
✅ What syntax for c#?
yes
39 replies