numbbbbb / sicp

收录我完成的练习题
719 stars 151 forks source link

e3-4 consecutive #5

Open rjrobben opened 8 months ago

rjrobben commented 8 months ago

We should reset the counter upon one successful login to fulfil consecutive requirement?

consider the following examples:

6 consecutive failed login 1 successful login 2 consecutive failed login -> will still call the cops

(btw thanks for the solutions and great writeup !)