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

Make/data structure/linked list.cpp generic #2915

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AmirCheshmberah
Copy link

@AmirCheshmberah AmirCheshmberah commented Jan 18, 2025

Description of Change

Make ./data structure/linked_list.cpp class generic
remove isDigit() function because class in generic now
change t variable to temp for better reading and prevent confusing with typename T
add braces for switch-case to prevent crosses initialization error

Checklist

  • Added description of change
  • Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
  • Relevant documentation/comments is changed or added
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.

Notes:
there is reverse() function declaration on line 96 and no implementation

…riable to temp, in switch case braces added to prevent cross initialization error
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.

1 participant