Day 8/365: Reversing a List Without Using Built‑in Functions 🔁🧠 Today I revisited a very common operation in programming: reversing a list. But instead of using Python’s built‑in methods like reverse() or slicing (n[::-1]), I implemented the logic manually using two pointers and a while loop. Why this exercise matters: 1. It forces me to think about how data is stored and changed in memory. 2. I practiced the two‑pointer technique, which is used a lot in array and string problems. 3. It reminded me that behind every “simple” built‑in method, there is an actual algorithm. Day 8 done ✅ 357 more to go. If you have similar two‑pointer problems (like checking palindromes or partitioning arrays), send them my way — I’d love to try them next. #100DaysOfCode #365DaysOfCode #Python #LogicBuilding #TwoPointers #ListManipulation #CodingJourney #LearnInPublic #AspiringDeveloper
Reversing a List Without Built-in Functions in Python
More Relevant Posts
-
While working on a project, I came across something simple but really important .𝐞𝐧𝐯 𝐟𝐢𝐥𝐞𝐬. At first, I was hardcoding things like 𝐀𝐏𝐈 𝐤𝐞𝐲𝐬 and 𝐔𝐑𝐋𝐬 directly into my code. It worked, but it didn’t feel right. That’s when I learned how .𝐞𝐧𝐯 files help keep sensitive data separate from the actual codebase. I put together a quick 4-slide breakdown covering: → What a .𝐞𝐧𝐯 file is → Why it matters → How to use it in Python #Programming #Python #WebDev #SoftwareEngineering #LearnInPublic #DevTips #100DaysOfCode #COMSATS #CUI
To view or add a comment, sign in
-
📄🔗 Just Built Something Useful with Python! Today, I worked on merging multiple PDF files (file1, file2, file3) into a single document using Python. This small project helped me understand: ✔️ File handling ✔️ Working with external libraries ✔️ Automating repetitive tasks It’s amazing how a few lines of code can save so much manual effort! 🚀 Next step: Adding a feature to merge PDFs dynamically based on user input. #Python #Automation #CodingJourney #LearningByDoing #StudentDeveloper
To view or add a comment, sign in
-
🚀 Built a Calculator App using Python! Excited to share my latest mini project — a Calculator Application built using Python with a clean and simple UI. 🔢 It performs all basic operations like addition, subtraction, multiplication, and division with real-time output. 🛠️ Tech Used: Python, Tkinter 💡 What I learned: GUI development in Python Event handling Writing clean and efficient logic This is a small step, but a strong foundation towards building more advanced applications in AI and software development. Looking forward to your feedback! 🙌 #Python #Coding #BeginnerProject #SoftwareDevelopment #AI #StudentDeveloper #Tkinter #Projects #LearningJourney
To view or add a comment, sign in
-
Day 3/365: Comparing Two Strings Character by Character 🧵🧠 Today I worked on a simple but fundamental logic problem: checking if two strings are the same, without directly using a built-in equality check. First, I compare the lengths of both strings. If lengths differ, they can’t be the same. If lengths match, I loop through each index and compare characters one by one. If any character is different, I break and print that the strings are not the same. If the loop finishes without finding a mismatch, the else block of the for loop runs and prints that the strings are the same. The interesting part is the for-else in Python. The else only runs when the loop completes normally (no break). This makes it a clean way to express: “if I didn’t find any mismatch in the entire loop, then the strings are equal.” Day 3 done ✅ 362 more to go. #100DaysOfCode #365DaysOfCode #Python #LogicBuilding #StringComparison #ForElse #CodingJourney #LearnInPublic #AspiringDeveloper
To view or add a comment, sign in
-
-
🚀 Day 11 – Palindrome Check in Python 💻 Today’s task: Write a program to check whether a string is a palindrome. 🔍 A palindrome is a string that reads the same forward and backward (e.g., madam, racecar). 📌 This exercise helped me understand: • String manipulation 🧩 • Reversing techniques 🔁 • Writing clean conditional logic ⚙️ ✨ Simple problem, but great for strengthening core programming concepts. 📈 Staying consistent and improving every day. #Python #100DaysOfCode #CodingJourney #Programming #ProblemSolving #Developer #LearnToCode #Tech #PythonTips
To view or add a comment, sign in
-
-
Get hands-on experience with Python's Wave file library With Wave Print, you'll learn to read, write, and update audio files in seconds. Master the Wave API to create production-ready software for IT professionals. Read the full article 👉 https://lnkd.in/dehD9qqH #Python #ITFreshers #LearnPython #ProgrammingLanguage #SoftwareEngineering #TechLab Code. Learn. Build. — TechLab by Neeraj
To view or add a comment, sign in
-
Day 4 done Today was less about “big problems” and more about practical coding: File line counting from a text file Word frequency counting with text cleaning Just Python basics that actually matter in real projects: file I/O, regex splitting, whitespace cleanup, punctuation handling, and case normalization. What I liked most today: small logic details made a big difference. A tiny cleanup step can completely change output quality. Code for Day 4: https://lnkd.in/gh-KJzG5 #Python #SoftwareEngineering #DeveloperJourney #Day4 #ProblemSolving
To view or add a comment, sign in
-
-
Wow... Can we bolt in other data sources into LabView using this? If we cant get off shelf drivers or integration compatibility - we can bolt into the python bridge?
Benchmarking roundtrip time 📨 of the 'labview-python-bridge', never new python could operate so fast (⚡<1 millisecond, zero data loss), the meme's lied to me... Benchmarking Spec: 20hz, 40hz, 100hz, 1000hz JSON package, 10 data points 'Labview-App' to Python-App' back to 'Labview-App' 👉 check out the labview-python-bridge: https://lnkd.in/d-9Z_2ks #Labview #Python #SmartFactory #IIoT #OpenSource
To view or add a comment, sign in
-
-
Day 46/100 – #100DaysOfCode 🚀 Solved LeetCode #2733 – Neither Minimum nor Maximum (Python). Today I practiced sorting and simple array logic to find any element that is neither the minimum nor the maximum in the array. Approach: 1) Sort the array. 2) Check the length of the array. 3) If the size is less than or equal to 2, return -1 (no valid element exists). 4) Otherwise, return the second element as it will be neither min nor max. Time Complexity: O(n log n) Space Complexity: O(1) Understanding how sorting simplifies boundary-based problems 💪 #LeetCode #Python #DSA #Arrays #Sorting #ProblemSolving #100DaysOfCode
To view or add a comment, sign in
-
-
🚀 Day 2 — Python Journey Continuing with Python, today I focused on integer operations. 📌 What I learned: - Integer declaration - Addition, subtraction, multiplication - Division and modulus (remainder) - Power operation - Operator precedence (which operation runs first) 💡 What stood out: Understanding operator precedence is really important — the same expression can give different results if you don’t know the order of execution. Also, modulus (%) is more useful than it looks (especially for problems and logic building). Trying to stay consistent and build strong basics step by step. #Day2 #Python #CodingJourney #Consistency #LearnInPublic
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development
Two pointer technique. Time complexity O(n) in the worst case. Space complexity remains O(1).