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

Counting no.of nodes in list through recursion and iteration #882

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

Conversation

ShreyaDayma-cse
Copy link

Pull Request Template

What have you Changed(must)

Write here what you have changed in codebase

Issue no.(must) -

Pr will be closed and marked as spam. If issue number not found or issue was assigned to someone else.
Marking as spam can block your account from HacktoberFest.

Self Check(Tick After Making pull Request)

  • This issue was assigned to me if not it will marked as spam.
  • My file is in proper folder.
  • I am following clean code and Documentation.
  • I have added title and what program will do first in the file.

README - How to Contribute

Copy link
Collaborator

@hemanth-kotagiri hemanth-kotagiri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, @ShreyaDayma-cse. I appreciate your efforts, but there's a lot that needs to be said of your PR.
General Suggestions:

  1. Always review Contrubition Guidelines of any repository before you raise a PR.
  2. You have not raised an Issue regarding your implementation - and it's essential for the issue to be created before you raising a PR and it also needs to be assigned to you.

Code Review:

  1. Please have proper naming conventions with regard to file names.
  2. Since you are implementing recursive and iterative approaches, you can either maintain two different PRs or add the implementations as two different methods in the same class with the proper method names.

new_node.next = null;
if (list.head == null) {
list.head = new_node;
} else {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please format your code properly before you commit your next changes.

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