---
title: "Discussion on \"Why Writing 100 Lines of Code can be Better than just 2 - A Gentle Introduction to Time Complexity\" | Hashnode"
description: "Discussion on \"Why Writing 100 Lines of Code can be Better than just 2 - A Gentle Introduction to Time Complexity\". Explore why writing more code can optimize time complexity, featuring a divide and conquer strategy for finding odd weights among objects efficiently"
url: "https://hashnode.com/posts/why-writing-100-lines-of-code-can-be-better-than-just-2-a-gentle-introduction-to-time-complexity/681672a21ca9f713ca37368a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why Writing 100 Lines of Code can be Better than just 2 - A Gentle Introduction to Time Complexity](https://why-writing-100-lines-of-code-can-be-better-than-just-2.hashnode.dev/why-writing-100-lines-of-code-can-be-better-than-just-2-a-gentle-introduction-to-time-complexity?utm_source=hashnode&utm_medium=feed)

Explore why writing more code can optimize time complexity, featuring a divide and conquer strategy for finding odd weights among objects efficiently

May 3, 2025 · 3 min read · why-writing-100-lines-of-code-can-be-better-than-just-2.hashnode.dev  
Read the article

-   [#dsa-with-cpp](https://hashnode.com/tag/dsa-with-cpp)
-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#time-complexity](https://hashnode.com/tag/time-complexity)
-   [#divide-and-conquer](https://hashnode.com/tag/divide-and-conquer)
-   [#see-beyond-brute-force-approach](https://hashnode.com/tag/see-beyond-brute-force-approach)

## Written by

[Rahul Kapoor](https://hashnode.com/@rahulkapoor2510)

@rahulkapoor2510 · New Delhi, India

  
[View profile](https://hashnode.com/@rahulkapoor2510)

Passionate about {Building&Deploying} projects that make a difference

I'm a Full Stack Developer with a stronghold in the MERN stack, a growing enthusiasm for AI/ML, and a mindset tuned for impact-driven problem-solving. My journey started in foundational languages like C, C++, and Java, and matured into building scalable applications with modern stacks like React, Next.js, and Node.js. My curiosity has recently extended into cloud-native systems and intelligent automation using Python, Google AI APIs, and TypeScript. I believe in learning by doing. Whether it’s shipping privacy-first platforms, writing code that scales, or demystifying complex tech via blogs — I thrive in transforming raw ideas into production-ready products.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
