Solving Search in Linked List Challenge

🚀 Day 15/100 — Coding Challenge Solved Search in Linked List The task is straightforward: 1) Traverse the linked list 2) Check each node’s value 3) Return true if found, else false 💡 Approach: 1) Start from head 2) Move node by node using next 3) Stop when element is found or list ends 🧠 Time Complexity: O(n) 💾 Space Complexity: O(1) 💡 What I realized: Unlike arrays, linked lists don’t allow direct access. You have to traverse sequentially, which makes understanding traversal very important. Focusing on strengthening fundamentals. #LeetCode #DSA #100DaysOfCode #Cpp #LinkedList #CodingJourney

  • No alternative text description for this image

To view or add a comment, sign in

Explore content categories