Binary search: Difference between revisions
Content added Content deleted
m (→{{header|C}}: In main program, the case "is not found" extracted.) |
m (→{{header|Quackery}}: tweak to code) |
||
Line 5,512:
value.bs put
nest.bs put
1 - swap
[ 2dup < if done
2dup + 1 >>
Line 5,530:
[ dup echo
over size
bsearchwith < iff
[ say " was identified as item " ]
|