---
title: "Discussion on \"🚀 Mastering LeetCode 611: Valid Triangle Number | From Brute Force to Two Pointers (Complete Beginner Guide)\n\" | Hashnode"
description: "Discussion on \"🚀 Mastering LeetCode 611: Valid Triangle Number | From Brute Force to Two Pointers (Complete Beginner Guide)\n\". Introduction\nWhen I first solved this problem, my first thought was:\n\n\"Let's check every possible triplet.\"\n\nThat solution works, but it has a time complexity of O(n³).\nThen I looked at the optimized"
url: "https://hashnode.com/posts/mastering-leetcode-611-valid-triangle-number-from-brute-force-to-two-pointers-complete-beginner-guide/6a518e71df5fdb889d40075e"
---

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

Discussion

# [🚀 Mastering LeetCode 611: Valid Triangle Number | From Brute Force to Two Pointers (Complete Beginner Guide)](https://ankitsingh2003.hashnode.dev/mastering-leetcode-611-valid-triangle-number-from-brute-force-to-two-pointers-complete-beginner-guide?utm_source=hashnode&utm_medium=feed)

Introduction When I first solved this problem, my first thought was: "Let's check every possible triplet." That solution works, but it has a time complexity of O(n³). Then I looked at the optimized

Jul 11 · 7 min read · ankitsingh2003.hashnode.dev  
Read the article

-   [#dsa](https://hashnode.com/tag/dsa)
-   [#dsa-series](https://hashnode.com/tag/dsa-series)

## Written by

[Ankit kumar Singh](https://hashnode.com/@ankit282)

@ankit282 · Bangalore,Karnataka,india

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

" I am best "

i am learner whatever i will learn i will write here

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
