summaryrefslogtreecommitdiff
path: root/internal/version.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-24 13:54:37 +0300
committerPaul Buetow <paul@buetow.org>2026-05-24 13:54:37 +0300
commit9ab695d7397ff60386dece45d62d6fb5249d66a3 (patch)
treeda3fa16e6500c2174014f88fb8a94aca8bbd39dc /internal/version.go
parentdddcf4a1ef3ca2a9960e608e55a57d65655b981e (diff)
fix(rpn): optimize Swap from O(n) to O(1) (task dj)
Replace stack.Values() with direct Pop() calls in Swap(). Previously created a full stack copy just to read the top two values. Behavior is unchanged — ensureStackLength guard guarantees pops succeed.
Diffstat (limited to 'internal/version.go')
0 files changed, 0 insertions, 0 deletions