TP Interview Question
Network EngineersCountry: United States
Interview Type: Phone Interview
If allowed, you could keep a counter and a loop threshold such that for every iteration, the counter can only change up to that threshold.
MAX_THRESHOLD = N
COUNTER = 0
while in LOOP
if COUNTER < MAX_THRESHOLD:
continue to execute code
else:
break
The Halting Problem
- pankajb64 May 16, 2013