You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found this on your website. It's a great little tool for visual learners. However, I was curious if there is a way to slow down the visualization or maybe pause it?
The text was updated successfully, but these errors were encountered:
def fn(s:str,i,j,k):
if i >= len(s):
if k >= 2:
return True
return False
currNo = 0
for i in range(i,len(s)):
currNo = currNo*10 + int(s[i])
if( j == -1 or (j-currNo) == 1 ):
if fn(s,i+1,currNo,count+1):
return True
return False
Getting error with this code, Can you pls identify what is going wrong , runs fine in IDE ?
fn('1234',0,-1,0)
Error response - Your code outputs the following File "", line 19, in _fn: ''
https://recursion.now.sh/
I found this on your website. It's a great little tool for visual learners. However, I was curious if there is a way to slow down the visualization or maybe pause it?
The text was updated successfully, but these errors were encountered: