Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request Slow it down! #4

Open
ughstudios opened this issue Mar 9, 2021 · 3 comments
Open

Feature Request Slow it down! #4

ughstudios opened this issue Mar 9, 2021 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@ughstudios
Copy link

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?

@brpapa
Copy link
Owner

brpapa commented Mar 9, 2021

At the moment, you can only stop the animation by clicking on the top bar, and then move forward or backward step by step by clicking the arrows.

But I am thinking of implementing a customized option in which the user can define your own pace. Thanks for the request, by the way!

@brpapa brpapa added the enhancement New feature or request label Mar 9, 2021
@prashul
Copy link

prashul commented May 5, 2021

Hello @brpapa ,

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: ''

@brpapa brpapa self-assigned this May 16, 2021
@brpapa
Copy link
Owner

brpapa commented May 16, 2021

Hi @prashul,

I improved the error messages. If you run it again you will see that the count var is not defined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants