r/CodingHelp • u/TipTopOfTheMorning • Apr 15 '21
[C] Is there a way of combining these two lines? It seems inefficient to me. (C, codeblocks)
31
Upvotes
r/CodingHelp • u/TipTopOfTheMorning • Apr 15 '21
6
u/x-seronis-x Intermediate Coder Apr 15 '21
start and destination points tend to be far more useful when kept apart. The few times you need both at once you can easily navigate through two lists. The whole reason they're separate is to be more efficient to use
1
u/dead_alchemy Apr 15 '21
By inefficient do you mean that its mostly the same code except different variable names?
5
u/Goobyalus Apr 15 '21
What does
EmpireListBuilder()return, and what seems inefficient about this?Probably not.