{"id":8398,"date":"2025-01-02T11:00:17","date_gmt":"2025-01-02T08:00:17","guid":{"rendered":"https:\/\/fatihsoysal.com\/blog\/leetcode-15-3sum-javascript-cozumu\/"},"modified":"2025-01-02T11:00:17","modified_gmt":"2025-01-02T08:00:17","slug":"leetcode-15-3sum-javascript-cozumu","status":"publish","type":"post","link":"https:\/\/fatihsoysal.com\/blog\/leetcode-15-3sum-javascript-cozumu\/","title":{"rendered":"LeetCode 15: 3Sum JavaScript \u00c7\u00f6z\u00fcm\u00fc"},"content":{"rendered":"<p>LeetCode 15: 3Sum JavaScript \u00c7\u00f6z\u00fcm\u00fc<\/p>\n<p>Bu makalede, LeetCode&#8217;un pop\u00fcler problemlerinden biri olan &#8220;3Sum&#8221; problemine JavaScript ile nas\u0131l \u00e7\u00f6z\u00fcm \u00fcretebilece\u011finizi detayl\u0131 olarak ele alaca\u011f\u0131z.  Hedefimiz, verilen bir dizide toplam\u0131 s\u0131f\u0131ra e\u015fit olan \u00fc\u00e7 say\u0131n\u0131n t\u00fcm olas\u0131 kombinasyonlar\u0131n\u0131 bulmak.  Bu problem, algoritma ve veri yap\u0131lar\u0131 bilginizi test eden zorlu bir problemdir. Ancak do\u011fru yakla\u015f\u0131mla, verimli bir \u00e7\u00f6z\u00fcm geli\u015ftirmek m\u00fcmk\u00fcnd\u00fcr.<\/p>\n<h2>Problemin Anlat\u0131m\u0131<\/h2>\n<p>Verilen bir tam say\u0131 dizisi <code>nums<\/code>,  toplam\u0131 s\u0131f\u0131ra e\u015fit olan \u00fc\u00e7 say\u0131n\u0131n t\u00fcm olas\u0131, benzersiz kombinasyonlar\u0131n\u0131 bulun.  Her kombinasyon, artan s\u0131rada listelenmelidir.  \u00d6rne\u011fin, <code>nums = [-1, 0, 1, 2, -1, -4]<\/code> i\u00e7in, \u00e7\u0131kt\u0131 <code>[[-1, -1, 2], [-1, 0, 1]]<\/code> olmal\u0131d\u0131r.<\/p>\n<h2>\u00c7\u00f6z\u00fcm Y\u00f6ntemi: \u0130ki \u0130\u015faret\u00e7i Tekni\u011fi<\/h2>\n<p>Bu problemi \u00e7\u00f6zmek i\u00e7in en verimli y\u00f6ntemlerden biri, iki i\u015faret\u00e7i tekni\u011fini kullanmakt\u0131r. \u00d6ncelikle, diziyi s\u0131ralayarak ba\u015fl\u0131yoruz.  Ard\u0131ndan, dizideki her bir eleman\u0131 ele al\u0131p, hedef toplam\u0131 (0) elde etmek i\u00e7in kalan iki say\u0131y\u0131 bulmak \u00fczere iki i\u015faret\u00e7i kullan\u0131yoruz.  Bu i\u015faret\u00e7iler, s\u0131ral\u0131 dizinin kalan k\u0131sm\u0131nda ilerleyerek,  toplam\u0131 s\u0131f\u0131ra e\u015fit olan kombinasyonlar\u0131 arar. Bu yakla\u015f\u0131m, \u00e7\u00f6z\u00fcm\u00fc O(n^2) zaman karma\u015f\u0131kl\u0131\u011f\u0131 ile ger\u00e7ekle\u015ftirir, bu da olduk\u00e7a verimlidir.  Ayr\u0131ca, benzersiz kombinasyonlar\u0131 bulmak i\u00e7in ek kontroller eklememiz gerekir.<\/p>\n<h2>JavaScript Kodu<\/h2>\n<pre><code class=\"language-javascript\">\n\/**\n * @param {number[]} nums\n * @return {number[][]}\n *\/\nvar threeSum = function(nums) {\n    nums.sort((a, b) => a - b); \/\/ Dizinin s\u0131ralanmas\u0131\n    const result = [];\n    for (let i = 0; i &lt; nums.length - 2; i++) {\n        \/\/ Tekrar eden say\u0131lar\u0131 atlamak i\u00e7in\n        if (i &gt; 0 && nums[i] === nums[i - 1]) continue; \n        let left = i + 1;\n        let right = nums.length - 1;\n        while (left &lt; right) {\n            const sum = nums[i] + nums[left] + nums[right];\n            if (sum === 0) {\n                result.push([nums[i], nums[left], nums[right]]);\n                \/\/ Tekrar eden say\u0131lar\u0131 atlamak i\u00e7in\n                while (left &lt; right && nums[left] === nums[left + 1]) left++;\n                while (left &lt; right && nums[right] === nums[right - 1]) right--;\n                left++;\n                right--;\n            } else if (sum &lt; 0) {\n                left++;\n            } else {\n                right--;\n            }\n        }\n    }\n    return result;\n};\n<\/code><\/pre>\n<h2>Kod A\u00e7\u0131klamas\u0131<\/h2>\n<p>Kod \u00f6ncelikle diziyi s\u0131ralar. Sonras\u0131nda, d\u0131\u015f d\u00f6ng\u00fc, dizinin her bir eleman\u0131n\u0131 teker teker inceler.  \u0130\u00e7 d\u00f6ng\u00fc ise, iki i\u015faret\u00e7i (<code>left<\/code> ve <code>right<\/code>) kullanarak, toplam\u0131 s\u0131f\u0131ra e\u015fit olan kombinasyonlar\u0131 arar.  E\u011fer toplam s\u0131f\u0131rdan k\u00fc\u00e7\u00fckse, <code>left<\/code> i\u015faret\u00e7isi sa\u011fa kayd\u0131r\u0131l\u0131r; toplam s\u0131f\u0131rdan b\u00fcy\u00fckse, <code>right<\/code> i\u015faret\u00e7isi sola kayd\u0131r\u0131l\u0131r.  Benzersiz kombinasyonlar bulmak i\u00e7in gerekli kontroller de eklenmi\u015ftir.  Sonu\u00e7 olarak, t\u00fcm benzersiz \u00fc\u00e7l\u00fc kombinasyonlar d\u00f6nd\u00fcr\u00fcl\u00fcr.<\/p>\n<h2>Karma\u015f\u0131kl\u0131k Analizi<\/h2>\n<p>Bu \u00e7\u00f6z\u00fcm\u00fcn zaman karma\u015f\u0131kl\u0131\u011f\u0131 O(n^2) ve yer karma\u015f\u0131kl\u0131\u011f\u0131 O(1)&#8217;dir (yerinde s\u0131ralama varsay\u0131m\u0131yla).  S\u0131ralama i\u015flemi O(n log n) zaman al\u0131rken, iki i\u015faret\u00e7i d\u00f6ng\u00fcs\u00fc O(n^2) zaman al\u0131r.  Ancak, s\u0131ralama i\u015flemi genel zaman karma\u015f\u0131kl\u0131\u011f\u0131na bask\u0131n gelmez, \u00e7\u00fcnk\u00fc  iki i\u015faret\u00e7i tekni\u011fi O(n^2)  zaman almaktad\u0131r.<\/p>\n<h2>Sonu\u00e7<\/h2>\n<p>Bu makalede, LeetCode 3Sum problemini \u00e7\u00f6zmek i\u00e7in verimli bir JavaScript \u00e7\u00f6z\u00fcm\u00fc sunduk.  \u0130ki i\u015faret\u00e7i tekni\u011fi kullanarak,  problemi O(n^2) zaman karma\u015f\u0131kl\u0131\u011f\u0131 ile \u00e7\u00f6zebildik.  Umar\u0131m bu makale,  algoritma ve veri yap\u0131lar\u0131 becerilerinizi geli\u015ftirmenize yard\u0131mc\u0131 olur. Daha fazla algoritma \u00e7\u00f6z\u00fcm\u00fc ve yaz\u0131l\u0131m geli\u015ftirme ipu\u00e7lar\u0131 i\u00e7in <a href=\"https:\/\/fatihsoysal.com\">fatihsoysal.com<\/a> adresini ziyaret edebilirsiniz.<\/p>\n<p><strong>Faydal\u0131 Kaynaklar:<\/strong><\/p>\n<ul>\n<li><a href=\"https:\/\/dev.to\/rahulgithubweb\/leetcode-challenge-15-3sum-javascript-solution-5c0g\">Orijinal \u0130ngilizce Makale<\/a><\/li>\n<li><a href=\"https:\/\/leetcode.com\/problems\/3sum\/\">LeetCode 3Sum Problemi<\/a><\/li>\n<\/ul>\n<h3>#Etiketler<\/h3>\n<p>#LeetCode #3Sum #JavaScript #Algoritma #VeriYap\u0131lar\u0131 #\u0130ki\u0130\u015faret\u00e7iTekni\u011fi #Programlama #\u00c7\u00f6z\u00fcm #Yaz\u0131l\u0131mGeli\u015ftirme #FatihSoysal<\/p>\n","protected":false},"excerpt":{"rendered":"LeetCode 15: 3Sum JavaScript \u00c7\u00f6z\u00fcm\u00fc Bu makalede, LeetCode&#8217;un pop\u00fcler problemlerinden biri olan &#8220;3Sum&#8221; problemine JavaScript ile nas\u0131l \u00e7\u00f6z\u00fcm&hellip;","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"csco_page_header_type":"","csco_page_load_nextpost":"","csco_page_subscribe_form":"","csco_page_contact_form":"","footnotes":""},"categories":[1],"tags":[],"class_list":{"0":"post-8398","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-genel","7":"cs-entry","8":"cs-video-wrap"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.5 (Yoast SEO v25.3.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>LeetCode 15: 3Sum JavaScript \u00c7\u00f6z\u00fcm\u00fc<\/title>\n<meta name=\"description\" content=\"Bu makalede, LeetCode&#039;un pop\u00fcler problemlerinden biri olan &quot;3Sum&quot; problemine JavaScript ile nas\u0131l \u00e7\u00f6z\u00fcm \u00fcretebilece\u011finizi detayl\u0131 olarak ele alaca\u011f\u0131z. Hedefimiz, verilen bir dizide toplam\u0131 s\u0131f\u0131ra e\u015fit olan \u00fc\u00e7 say\u0131n\u0131n t\u00fcm olas\u0131 kombinasyonlar\u0131n\u0131 bulmak. Bu problem, algoritma ve veri yap\u0131lar\u0131 bilginizi test eden zorlu bir problemdir. Ancak do\u011fru yakla\u015f\u0131mla, verimli bir \u00e7\u00f6z\u00fcm geli\u015ftirmek m\u00fcmk\u00fcnd\u00fcr.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fatihsoysal.com\/blog\/leetcode-15-3sum-javascript-cozumu\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LeetCode 15: 3Sum JavaScript \u00c7\u00f6z\u00fcm\u00fc\" \/>\n<meta property=\"og:description\" content=\"Bu makalede, LeetCode&#039;un pop\u00fcler problemlerinden biri olan &quot;3Sum&quot; problemine JavaScript ile nas\u0131l \u00e7\u00f6z\u00fcm \u00fcretebilece\u011finizi detayl\u0131 olarak ele alaca\u011f\u0131z. Hedefimiz, verilen bir dizide toplam\u0131 s\u0131f\u0131ra e\u015fit olan \u00fc\u00e7 say\u0131n\u0131n t\u00fcm olas\u0131 kombinasyonlar\u0131n\u0131 bulmak. Bu problem, algoritma ve veri yap\u0131lar\u0131 bilginizi test eden zorlu bir problemdir. Ancak do\u011fru yakla\u015f\u0131mla, verimli bir \u00e7\u00f6z\u00fcm geli\u015ftirmek m\u00fcmk\u00fcnd\u00fcr.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fatihsoysal.com\/blog\/leetcode-15-3sum-javascript-cozumu\/\" \/>\n<meta property=\"og:site_name\" content=\"Kodlar\u0131n Gizemli D\u00fcnyas\u0131\" \/>\n<meta property=\"article:published_time\" content=\"2025-01-02T08:00:17+00:00\" \/>\n<meta name=\"author\" content=\"Fatih Soysal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Yazan:\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fatih Soysal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tahmini okuma s\u00fcresi\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/leetcode-15-3sum-javascript-cozumu\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/leetcode-15-3sum-javascript-cozumu\/\"},\"author\":{\"name\":\"Fatih Soysal\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"headline\":\"LeetCode 15: 3Sum JavaScript \u00c7\u00f6z\u00fcm\u00fc\",\"datePublished\":\"2025-01-02T08:00:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/leetcode-15-3sum-javascript-cozumu\/\"},\"wordCount\":493,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/leetcode-15-3sum-javascript-cozumu\/#respond\"]}],\"copyrightYear\":\"2025\",\"copyrightHolder\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/leetcode-15-3sum-javascript-cozumu\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/leetcode-15-3sum-javascript-cozumu\/\",\"name\":\"LeetCode 15: 3Sum JavaScript \u00c7\u00f6z\u00fcm\u00fc\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\"},\"datePublished\":\"2025-01-02T08:00:17+00:00\",\"description\":\"Bu makalede, LeetCode'un pop\u00fcler problemlerinden biri olan \\\"3Sum\\\" problemine JavaScript ile nas\u0131l \u00e7\u00f6z\u00fcm \u00fcretebilece\u011finizi detayl\u0131 olarak ele alaca\u011f\u0131z. Hedefimiz, verilen bir dizide toplam\u0131 s\u0131f\u0131ra e\u015fit olan \u00fc\u00e7 say\u0131n\u0131n t\u00fcm olas\u0131 kombinasyonlar\u0131n\u0131 bulmak. Bu problem, algoritma ve veri yap\u0131lar\u0131 bilginizi test eden zorlu bir problemdir. Ancak do\u011fru yakla\u015f\u0131mla, verimli bir \u00e7\u00f6z\u00fcm geli\u015ftirmek m\u00fcmk\u00fcnd\u00fcr.\",\"breadcrumb\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/leetcode-15-3sum-javascript-cozumu\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/leetcode-15-3sum-javascript-cozumu\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/leetcode-15-3sum-javascript-cozumu\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anasayfa\",\"item\":\"https:\/\/fatihsoysal.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"LeetCode 15: 3Sum JavaScript \u00c7\u00f6z\u00fcm\u00fc\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/\",\"name\":\"Fatihsoysal.com\",\"description\":\"Blog - Yaz\u0131l\u0131m D\u00fcnyas\u0131 Tecr\u00fcbelerim\",\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fatihsoysal.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"tr\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\",\"name\":\"Fatih Soysal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png\",\"contentUrl\":\"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png\",\"width\":512,\"height\":512,\"caption\":\"Fatih Soysal\"},\"logo\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/\"},\"description\":\"Kullan\u0131m ve kodlama m\u00fckemmeliyetini odak alan uygulamalar olu\u015fturma deneyimine sahip, profesyonel olarak 15+ y\u0131l \u00fczeri deneyime sahip bir yaz\u0131l\u0131m m\u00fchendisi.\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/author\/fatihsoysal\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"LeetCode 15: 3Sum JavaScript \u00c7\u00f6z\u00fcm\u00fc","description":"Bu makalede, LeetCode'un pop\u00fcler problemlerinden biri olan \"3Sum\" problemine JavaScript ile nas\u0131l \u00e7\u00f6z\u00fcm \u00fcretebilece\u011finizi detayl\u0131 olarak ele alaca\u011f\u0131z. Hedefimiz, verilen bir dizide toplam\u0131 s\u0131f\u0131ra e\u015fit olan \u00fc\u00e7 say\u0131n\u0131n t\u00fcm olas\u0131 kombinasyonlar\u0131n\u0131 bulmak. Bu problem, algoritma ve veri yap\u0131lar\u0131 bilginizi test eden zorlu bir problemdir. Ancak do\u011fru yakla\u015f\u0131mla, verimli bir \u00e7\u00f6z\u00fcm geli\u015ftirmek m\u00fcmk\u00fcnd\u00fcr.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fatihsoysal.com\/blog\/leetcode-15-3sum-javascript-cozumu\/","og_locale":"tr_TR","og_type":"article","og_title":"LeetCode 15: 3Sum JavaScript \u00c7\u00f6z\u00fcm\u00fc","og_description":"Bu makalede, LeetCode'un pop\u00fcler problemlerinden biri olan \"3Sum\" problemine JavaScript ile nas\u0131l \u00e7\u00f6z\u00fcm \u00fcretebilece\u011finizi detayl\u0131 olarak ele alaca\u011f\u0131z. Hedefimiz, verilen bir dizide toplam\u0131 s\u0131f\u0131ra e\u015fit olan \u00fc\u00e7 say\u0131n\u0131n t\u00fcm olas\u0131 kombinasyonlar\u0131n\u0131 bulmak. Bu problem, algoritma ve veri yap\u0131lar\u0131 bilginizi test eden zorlu bir problemdir. Ancak do\u011fru yakla\u015f\u0131mla, verimli bir \u00e7\u00f6z\u00fcm geli\u015ftirmek m\u00fcmk\u00fcnd\u00fcr.","og_url":"https:\/\/fatihsoysal.com\/blog\/leetcode-15-3sum-javascript-cozumu\/","og_site_name":"Kodlar\u0131n Gizemli D\u00fcnyas\u0131","article_published_time":"2025-01-02T08:00:17+00:00","author":"Fatih Soysal","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Fatih Soysal","Tahmini okuma s\u00fcresi":"3 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fatihsoysal.com\/blog\/leetcode-15-3sum-javascript-cozumu\/#article","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/leetcode-15-3sum-javascript-cozumu\/"},"author":{"name":"Fatih Soysal","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"headline":"LeetCode 15: 3Sum JavaScript \u00c7\u00f6z\u00fcm\u00fc","datePublished":"2025-01-02T08:00:17+00:00","mainEntityOfPage":{"@id":"https:\/\/fatihsoysal.com\/blog\/leetcode-15-3sum-javascript-cozumu\/"},"wordCount":493,"commentCount":0,"publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"inLanguage":"tr","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fatihsoysal.com\/blog\/leetcode-15-3sum-javascript-cozumu\/#respond"]}],"copyrightYear":"2025","copyrightHolder":{"@id":"https:\/\/fatihsoysal.com\/blog\/#organization"}},{"@type":"WebPage","@id":"https:\/\/fatihsoysal.com\/blog\/leetcode-15-3sum-javascript-cozumu\/","url":"https:\/\/fatihsoysal.com\/blog\/leetcode-15-3sum-javascript-cozumu\/","name":"LeetCode 15: 3Sum JavaScript \u00c7\u00f6z\u00fcm\u00fc","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/#website"},"datePublished":"2025-01-02T08:00:17+00:00","description":"Bu makalede, LeetCode'un pop\u00fcler problemlerinden biri olan \"3Sum\" problemine JavaScript ile nas\u0131l \u00e7\u00f6z\u00fcm \u00fcretebilece\u011finizi detayl\u0131 olarak ele alaca\u011f\u0131z. Hedefimiz, verilen bir dizide toplam\u0131 s\u0131f\u0131ra e\u015fit olan \u00fc\u00e7 say\u0131n\u0131n t\u00fcm olas\u0131 kombinasyonlar\u0131n\u0131 bulmak. Bu problem, algoritma ve veri yap\u0131lar\u0131 bilginizi test eden zorlu bir problemdir. Ancak do\u011fru yakla\u015f\u0131mla, verimli bir \u00e7\u00f6z\u00fcm geli\u015ftirmek m\u00fcmk\u00fcnd\u00fcr.","breadcrumb":{"@id":"https:\/\/fatihsoysal.com\/blog\/leetcode-15-3sum-javascript-cozumu\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fatihsoysal.com\/blog\/leetcode-15-3sum-javascript-cozumu\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/fatihsoysal.com\/blog\/leetcode-15-3sum-javascript-cozumu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Anasayfa","item":"https:\/\/fatihsoysal.com\/blog\/"},{"@type":"ListItem","position":2,"name":"LeetCode 15: 3Sum JavaScript \u00c7\u00f6z\u00fcm\u00fc"}]},{"@type":"WebSite","@id":"https:\/\/fatihsoysal.com\/blog\/#website","url":"https:\/\/fatihsoysal.com\/blog\/","name":"Fatihsoysal.com","description":"Blog - Yaz\u0131l\u0131m D\u00fcnyas\u0131 Tecr\u00fcbelerim","publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fatihsoysal.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"tr"},{"@type":["Person","Organization"],"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1","name":"Fatih Soysal","image":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png","contentUrl":"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png","width":512,"height":512,"caption":"Fatih Soysal"},"logo":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/"},"description":"Kullan\u0131m ve kodlama m\u00fckemmeliyetini odak alan uygulamalar olu\u015fturma deneyimine sahip, profesyonel olarak 15+ y\u0131l \u00fczeri deneyime sahip bir yaz\u0131l\u0131m m\u00fchendisi.","url":"https:\/\/fatihsoysal.com\/blog\/author\/fatihsoysal\/"}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/8398","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/comments?post=8398"}],"version-history":[{"count":0,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/8398\/revisions"}],"wp:attachment":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/media?parent=8398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/categories?post=8398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/tags?post=8398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}