Added Linked List in java with basic opertiaons(search,delete,insert,…#148
Added Linked List in java with basic opertiaons(search,delete,insert,…#148attu0 wants to merge 2 commits into
Conversation
|
🎉 Welcome to Hacktoberfest 2025, @attu0! 🎃 Thank you for your first contribution to our DSA repository! Here's what happens next: 🔍 Automatic Checks
📋 Next Steps🎯 Great job! Your code compiled successfully. Maintainers @admirerr and @kartikey2991 will review your PR soon. 🎁 What You Get
💡 Tips for Success
Welcome to the community! 🚀 |
🤖 Automated PR Status🔍 Code Validation✅ Passed - File naming and structure look good! 🧪 Compilation Tests✅ Passed - All code compiles successfully! 📋 Overall Status🎉 Ready for Review - Your PR has passed all automated checks! This comment was generated automatically. Checks will re-run when you push new commits. |
admirerr
left a comment
There was a problem hiding this comment.
Please follow contribution rules
|
🎉 Welcome to Hacktoberfest 2025, @attu0! 🎃 Thank you for your first contribution to our DSA repository! Here's what happens next: 🔍 Automatic Checks
📋 Next Steps🎁 What You Get
💡 Tips for Success
Welcome to the community! 🚀 |
🤖 Automated PR Status🔍 Code Validation✅ Passed - File naming and structure look good! 🧪 Compilation Tests❌ Failed - Please fix compilation errors and try again. 📋 Overall Status
This comment was generated automatically. Checks will re-run when you push new commits. |
This pull request adds several new Java implementations for singly linked list operations, each in its own file. The main focus is on basic linked list manipulations such as inserting at the head, deleting the last node, searching for an element, and calculating the length of the list. Each file defines its own
Nodeclass and demonstrates the respective operation with a sample linked list.Linked List Operations:
insertathead.javawith a function to insert a new node at the head of a singly linked list, including a demonstration in themainmethod.deletelastnode.javaimplementing deletion of the tail node from a singly linked list, with sample usage.searchinanlinkedlist.javawith a function to search for a given value in a singly linked list, returning 1 if found and 0 otherwise.lengthodlinkedlist.javaproviding a function to calculate and print the length of a singly linked list.…length)