Skip to content

Changes to menu and san() function#9

Merged
Anish-M-code merged 2 commits intoAnish-M-code:masterfrom
rohithpeddi7:menu
Oct 29, 2022
Merged

Changes to menu and san() function#9
Anish-M-code merged 2 commits intoAnish-M-code:masterfrom
rohithpeddi7:menu

Conversation

@rohithpeddi7
Copy link
Copy Markdown
Contributor

@rohithpeddi7 rohithpeddi7 commented Oct 27, 2022

Hello @Anish-M-code , I have made changes to san() function which previously called itself. This method wasn't good because function call upon function call were being added to stack and there was chance of stack overflow. So I instead changed the function not to call itself, and added while(True): san(). This approach is better because the auxiliary space is O(1). I have also added option to menu to specify that with input as 'c', the program ends. Please let me know if there are any issues. Thanks!

@Anish-M-code
Copy link
Copy Markdown
Owner

Anish-M-code commented Oct 28, 2022

@rohithpeddi7 please remove .pyc files and _ _ pycache _ _ folder , rest of code looks fine to me.

@rohithpeddi7
Copy link
Copy Markdown
Contributor Author

@Anish-M-code Yeah sorry! Now I got rid of them.

@Anish-M-code Anish-M-code merged commit c71b512 into Anish-M-code:master Oct 29, 2022
@Anish-M-code
Copy link
Copy Markdown
Owner

Thanks for contributing @rohithpeddi7 👍

@Anish-M-code Anish-M-code mentioned this pull request Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants