<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Backtracking on Dinçer Bakkal</title>
    <link>https://www.dincerbakkal.com/tags/backtracking/</link>
    <description>Recent content in Backtracking on Dinçer Bakkal</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-US</language>
    <copyright>This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.</copyright>
    <lastBuildDate>Sat, 02 Apr 2022 19:12:05 +0300</lastBuildDate><atom:link href="https://www.dincerbakkal.com/tags/backtracking/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Leetcode Backtracking Soruları</title>
      <link>https://www.dincerbakkal.com/posts/sorubacktracking/</link>
      <pubDate>Sat, 02 Apr 2022 19:12:05 +0300</pubDate>
      
      <guid>https://www.dincerbakkal.com/posts/sorubacktracking/</guid>
      <description> Leetcode 079 Word Search Leetcode 784 Letter Case Permutation Leetcode 078 Subsets Leetcode 090 Subsets II Leetcode 046 Permutations Leetcode 047 Permutations II Leetcode 077 Combinations Leetcode 039 Combination Sum Leetcode 040 Combination Sum II Leetcode 216 Combination Sum III Leetcode 022 Generate Parentheses Leetcode 494 Target Sum Leetcode 131 Palindrome Partitioning Leetcode 017 Letter Combinations of a Phone Number Leetcode 320 Generalized Abbreviation  </description>
    </item>
    
    <item>
      <title>Leetcode 320 Generalized Abbreviation</title>
      <link>https://www.dincerbakkal.com/posts/leetcode320/</link>
      <pubDate>Tue, 20 Apr 2021 20:12:05 +0300</pubDate>
      
      <guid>https://www.dincerbakkal.com/posts/leetcode320/</guid>
      <description>A word&amp;rsquo;s generalized abbreviation can be constructed by taking any number of non-overlapping substrings and replacing them with their respective lengths. For example, &amp;ldquo;abcde&amp;rdquo; can be abbreviated into &amp;ldquo;a3e&amp;rdquo; (&amp;ldquo;bcd&amp;rdquo; turned into &amp;ldquo;3&amp;rdquo;), &amp;ldquo;1bcd1&amp;rdquo; (&amp;ldquo;a&amp;rdquo; and &amp;ldquo;e&amp;rdquo; both turned into &amp;ldquo;1&amp;rdquo;), and &amp;ldquo;23&amp;rdquo; (&amp;ldquo;ab&amp;rdquo; turned into &amp;ldquo;2&amp;rdquo; and &amp;ldquo;cde&amp;rdquo; turned into &amp;ldquo;3&amp;rdquo;).
Given a string word, return a list of all the possible generalized abbreviations of word. Return the answer in any order.</description>
    </item>
    
    <item>
      <title>Leetcode 17 Letter Combinations of a Phone Number</title>
      <link>https://www.dincerbakkal.com/posts/leetcode017/</link>
      <pubDate>Tue, 20 Apr 2021 19:12:05 +0300</pubDate>
      
      <guid>https://www.dincerbakkal.com/posts/leetcode017/</guid>
      <description>Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any order.
A mapping of digit to letters (just like on the telephone buttons) is given below. Note that 1 does not map to any letters.
  Input: digits = &amp;quot;23&amp;quot; Output: [&amp;quot;ad&amp;quot;,&amp;quot;ae&amp;quot;,&amp;quot;af&amp;quot;,&amp;quot;bd&amp;quot;,&amp;quot;be&amp;quot;,&amp;quot;bf&amp;quot;,&amp;quot;cd&amp;quot;,&amp;quot;ce&amp;quot;,&amp;quot;cf&amp;quot;]  Input: digits = &amp;quot;&amp;quot; Output: []  Input: digits = &amp;quot;2&amp;quot; Output: [&amp;quot;a&amp;quot;,&amp;quot;b&amp;quot;,&amp;quot;c&amp;quot;]  Soruda bizden telefonlarda olan kodlama sistemine göre verilen rakamların kaç farklı harf kombinasyonu olduğunu bulmamızı istiyor.</description>
    </item>
    
    <item>
      <title>Leetcode 131 Palindrome Partitioning</title>
      <link>https://www.dincerbakkal.com/posts/leetcode131/</link>
      <pubDate>Mon, 19 Apr 2021 19:12:05 +0300</pubDate>
      
      <guid>https://www.dincerbakkal.com/posts/leetcode131/</guid>
      <description>Given a string s, partition s such that every substring of the partition is a palindrome. Return all possible palindrome partitioning of s.
A palindrome string is a string that reads the same backward as forward.
 Input: s = &amp;quot;aab&amp;quot; Output: [[&amp;quot;a&amp;quot;,&amp;quot;a&amp;quot;,&amp;quot;b&amp;quot;],[&amp;quot;aa&amp;quot;,&amp;quot;b&amp;quot;]]  Input: s = &amp;quot;a&amp;quot; Output: [[&amp;quot;a&amp;quot;]]  Soruda bize bir string listesi veriliyor.Ve bu listeden oluşturulabilecek palindrome string parçalarını bulmamız isteniyor. Palindrome düz ve ters aynı şekilde okunabilen kelime demek.</description>
    </item>
    
    <item>
      <title>Leetcode 494 Target Sum</title>
      <link>https://www.dincerbakkal.com/posts/leetcode494/</link>
      <pubDate>Sun, 18 Apr 2021 19:12:05 +0300</pubDate>
      
      <guid>https://www.dincerbakkal.com/posts/leetcode494/</guid>
      <description>You are given an integer array nums and an integer target.
You want to build an expression out of nums by adding one of the symbols &amp;lsquo;+&amp;rsquo; and &amp;lsquo;-&amp;rsquo; before each integer in nums and then concatenate all the integers.
For example, if nums = [2, 1], you can add a &amp;lsquo;+&amp;rsquo; before 2 and a &amp;lsquo;-&amp;rsquo; before 1 and concatenate them to build the expression &amp;ldquo;+2-1&amp;rdquo;. Return the number of different expressions that you can build, which evaluates to target.</description>
    </item>
    
    <item>
      <title>Leetcode 22 Generate Parentheses</title>
      <link>https://www.dincerbakkal.com/posts/leetcode022/</link>
      <pubDate>Sat, 17 Apr 2021 19:12:05 +0300</pubDate>
      
      <guid>https://www.dincerbakkal.com/posts/leetcode022/</guid>
      <description>Soru Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
Örnek 1 Input: n = 3 Output: [&amp;quot;((()))&amp;quot;,&amp;quot;(()())&amp;quot;,&amp;quot;(())()&amp;quot;,&amp;quot;()(())&amp;quot;,&amp;quot;()()()&amp;quot;] Örnek 2 Input: n = 1 Output: [&amp;quot;()&amp;quot;] Çözüm  n çift parantez kullanarak oluşturulabilecek tüm geçerli parantez kombinasyonlarını üretmenizi isteyen bir problem. Burada geçerli bir kombinasyon, her açılan parantezin bir kapanış parantezi ile eşleşmesi ve herhangi bir zamanda açık parantez sayısının kapanan parantez sayısını geçmemesi gerektiğini ifade eder.</description>
    </item>
    
    <item>
      <title>Leetcode 216 Combination Sum III</title>
      <link>https://www.dincerbakkal.com/posts/leetcode216/</link>
      <pubDate>Fri, 16 Apr 2021 19:12:05 +0300</pubDate>
      
      <guid>https://www.dincerbakkal.com/posts/leetcode216/</guid>
      <description>Find all valid combinations of k numbers that sum up to n such that the following conditions are true:
Only numbers 1 through 9 are used. Each number is used at most once. Return a list of all possible valid combinations. The list must not contain the same combination twice, and the combinations may be returned in any order.
Input: k = 3, n = 7 Output: [[1,2,4]] Explanation: 1 + 2 + 4 = 7 There are no other valid combinations.</description>
    </item>
    
    <item>
      <title>Leetcode 40 Combination Sum II</title>
      <link>https://www.dincerbakkal.com/posts/leetcode040/</link>
      <pubDate>Thu, 15 Apr 2021 19:12:05 +0300</pubDate>
      
      <guid>https://www.dincerbakkal.com/posts/leetcode040/</guid>
      <description>Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numbers sum to target.
Each number in candidates may only be used once in the combination.
Note: The solution set must not contain duplicate combinations.
Input: candidates = [10,1,2,7,6,1,5], target = 8 Output: [ [1,1,6], [1,2,5], [1,7], [2,6] ] Input: candidates = [2,5,2,1,2], target = 5 Output: [ [1,2,2], [5] ]  Soruda bize candidates listesi içinde sayılar ve bir target sayı veriliyor.</description>
    </item>
    
    <item>
      <title>Leetcode 39 Combination Sum</title>
      <link>https://www.dincerbakkal.com/posts/leetcode039/</link>
      <pubDate>Wed, 14 Apr 2021 19:12:05 +0300</pubDate>
      
      <guid>https://www.dincerbakkal.com/posts/leetcode039/</guid>
      <description>Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum to target. You may return the combinations in any order.
The same number may be chosen from candidates an unlimited number of times. Two combinations are unique if the frequency of at least one of the chosen numbers is different.
It is guaranteed that the number of unique combinations that sum up to target is less than 150 combinations for the given input.</description>
    </item>
    
    <item>
      <title>Leetcode 77 Combinations</title>
      <link>https://www.dincerbakkal.com/posts/leetcode077/</link>
      <pubDate>Tue, 13 Apr 2021 19:12:05 +0300</pubDate>
      
      <guid>https://www.dincerbakkal.com/posts/leetcode077/</guid>
      <description>Given two integers n and k, return all possible combinations of k numbers out of the range [1, n].
You may return the answer in any order.
Input: n = 4, k = 2 Output: [ [2,4], [3,4], [2,3], [1,2], [1,3], [1,4], ] Input: n = 1, k = 1 Output: [[1]]  Soruda bize n ve k değerleri veriliyor.Bizden istenen 1-n arasındaki sayıların k&amp;rsquo;li kombinasyonu. Bu soruda 90. sorudaki çözüm şeklini izleyebiliriz.</description>
    </item>
    
  </channel>
</rss>
