Skip to content

For students in my lab for Programming 2. Warm up for learning how to contribute to github and improve understanding of linked list.

Notifications You must be signed in to change notification settings

StrongKs/SinglyLinkedListWarmUp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Singly Linked List Warm-Up

📌 Objective

This repository provides a basic Singly Linked List implementation. Your task is to implement the reverseLinkedList() function in SinglyLinkedList.cpp.

🚀 Instructions

1️⃣ Fork This Repository

Before making any changes, you need to fork this repository to your own GitHub account.

  1. Click the Fork button at the top right of this repo.
  2. This will create a copy under https://github.com/YOUR_GITHUB_USERNAME/SinglyLinkedListWarmUp.

2️⃣ Clone Your Fork

Once forked, clone it to your local machine:

git clone https://github.com/YOUR_GITHUB_USERNAME/SinglyLinkedListWarmUp.git
cd SinglyLinkedListWarmUp

3️⃣ Create a New Branch

Always work on a new branch before making changes:

git checkout -b reverse-linked-list

4️⃣ Implement reverseLinkedList() in SinglyLinkedList.cpp

Your task is to implement the reverseLinkedList() function, which should reverse the linked list in place. Do not modify other parts of the code.

Example

If the original list is:

1 -> 2 -> 3 -> NULL

After calling reverseLinkedList(), it should become:

3 -> 2 -> 1 -> NULL

5️⃣ Commit Your Changes

Once implemented, save and commit your changes:

git add .
git commit -m "Implemented reverseLinkedList function"

6️⃣ Push to Your Fork

Send your changes to your forked repository:

git push origin reverse-linked-list

7️⃣ Open a Pull Request (PR)

  1. Go to your forked repo on GitHub.
  2. Click "Contribute" → "Open Pull Request".
  3. Make sure to set the base repository to:
    base repository: StrongKs/SinglyLinkedListWarmUp
    base branch: main
    
  4. Add a short description of your implementation.
  5. Click "Create pull request".

✅ Review & Merge

Once you submit your PR, it will be reviewed. If everything looks good, it will be merged into the main repository.


🛠 Need Help?

If you run into any issues, feel free to ask questions in the Issues section of this repository.

Happy coding! 🚀

About

For students in my lab for Programming 2. Warm up for learning how to contribute to github and improve understanding of linked list.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages