Skip to main content
Jim Sawyer's user avatar
Jim Sawyer's user avatar
Jim Sawyer's user avatar
Jim Sawyer
  • Member for 7 years, 8 months
  • Last seen more than 1 year ago
comment
What is loop invariant for this loop?
Sure--but if empty stack case is important, there is an easy fix. Change the first line to (ok := stack size > 0)
answered
Loading…
Loading…
awarded
awarded
answered
Loading…