New answers tagged

0

You might find more efficiency if you venture into assembler but the concern that jumps out is the iterative nature of this approach, which is O(n). When you say "most gas efficient way" you don't say for who, exactly, it is meant to be efficient. You might consider shifting the burden to users during the evolution of the state. You don't say ...


Top 50 recent answers are included