|
6 | 6 |
|
7 | 7 | | Current Status| Stats |
|
8 | 8 | | :------------: | :----------: |
|
9 |
| -| Total Problems | 114 | |
10 |
| -| Current Streak | 78 days | |
11 |
| -| Longest Streak | 78 ( August 17, 2015 - November 02, 2015 ) | |
| 9 | +| Total Problems | 116 | |
| 10 | +| Current Streak | 79 days | |
| 11 | +| Longest Streak | 79 ( August 17, 2015 - November 03, 2015 ) | |
12 | 12 |
|
13 | 13 | </center>
|
14 | 14 |
|
@@ -157,6 +157,7 @@ Include contains single header implementation of data structures and some algori
|
157 | 157 | | Given a list of unsorted integers, A={a<sub>1</sub>,a<sub>2</sub>,…,a<sub>N</sub>}, Find the pair of elements that have the smallest absolute difference between them? If there are multiple pairs, find them all.| [closest_numbers.cpp](sort_search_problems/closest_numbers.cpp)|
|
158 | 158 | | Given a sorted array, determine index of fixed point in this array. If array does not have a fixed point return -1. An array has a fixed point when index of the element is same as index i.e. i == arr[i], Expected time complexity O(logn)| [fixedPoint.cpp](sort_search_problems/fixedPoint.cpp)|
|
159 | 159 | | Find the maximum element in an array which is first increasing and then decreasing. Input: arr[] = {8, 10, 20, 80, 100, 200, 400, 500, 3, 2, 1}, output : 500. Array may be strictly increasing or decreasing as well. ExpectedTime complexity is O(logn).| [findMaximum.cpp](sort_search_problems/findMaximum.cpp)|
|
| 160 | +| Given an array of positive and/or negative integers, find a pair in the array whose sum is closest to 0.| [findClosestPairToZero.cpp](sort_search_problems/findClosestPairToZero.cpp)| |
160 | 161 |
|
161 | 162 | ### Graph Problems
|
162 | 163 | | Problem | Solution |
|
@@ -191,3 +192,4 @@ Include contains single header implementation of data structures and some algori
|
191 | 192 | |Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is *"((()))", "(()())", "(())()", "()(())", "()()()"*| [generate_parenthesis.cpp](leet_code_problems/generate_parenthesis.cpp)|
|
192 | 193 | |Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array.For example, Given nums = [0, 1, 3] return 2.| [missing_number.cpp](leet_code_problems/missing_number.cpp)|
|
193 | 194 | |Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 1 2). Find the minimum element. You may assume no duplicate exists in the array.| [find_min_rotated.cpp](leet_code_problems/find_min_rotated.cpp)|
|
| 195 | +|Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have exactly one solution.| [threeSumClosest.cpp](leet_code_problems/threeSumClosest.cpp)| |
0 commit comments