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

Changing functional code to OOPS #1

Open
ay2306 opened this issue Oct 14, 2018 · 2 comments
Open

Changing functional code to OOPS #1

ay2306 opened this issue Oct 14, 2018 · 2 comments

Comments

@ay2306
Copy link
Contributor

ay2306 commented Oct 14, 2018

Many code snippets can be used as libraries if we shift from functional paradigm to OOP paradigm and can even further simplify code writing in cases of question where more than one data structures are required.

@ankushgarg1998
Copy link
Owner

Any specifics?

@ay2306
Copy link
Contributor Author

ay2306 commented Oct 21, 2018

For example, if we put code snippet of the segment tree in a class, with other methods. We can simply import the class and use the DS. It will also be helpful if we are working on a question in which two segment trees are required. We can simply work with objects of two trees.

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

No branches or pull requests

2 participants