You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<
8B11
script type="application/json" data-target="react-app.embeddedData">{"payload":{"allShortcutsEnabled":false,"fileTree":{"algorithms/3Sum":{"items":[{"name":"3Sum.cpp","path":"algorithms/3Sum/3Sum.cpp","contentType":"file"}],"totalCount":1},"algorithms":{"items":[{"name":"3Sum","path":"algorithms/3Sum","contentType":"directory"},{"name":"3SumClosest","path":"algorithms/3SumClosest","contentType":"directory"},{"name":"4Sum","path":"algorithms/4Sum","contentType":"directory"},{"name":"LRUCache","path":"algorithms/LRUCache","contentType":"directory"},{"name":"addBinary","path":"algorithms/addBinary","contentType":"directory"},{"name":"addTwoNumbers","path":"algorithms/addTwoNumbers","contentType":"directory"},{"name":"anagrams","path":"algorithms/anagrams","contentType":"directory"},{"name":"balancedBinaryTree","path":"algorithms/balancedBinaryTree","contentType":"directory"},{"name":"bestTimeToBuyAndSellStock","path":"algorithms/bestTimeToBuyAndSellStock","contentType":"directory"},{"name":"binarySearchTreeIterator","path":"algorithms/binarySearchTreeIterator","contentType":"directory"},{"name":"binaryTreeInorderTraversal","path":"algorithms/binaryTreeInorderTraversal","contentType":"directory"},{"name":"binaryTreeLevelOrderTraversal","path":"algorithms/binaryTreeLevelOrderTraversal","contentType":"directory"},{"name":"binaryTreeMaximumPathSum","path":"algorithms/binaryTreeMaximumPathSum","contentType":"directory"},{"name":"binaryTreePostorderTraversal","path":"algorithms/binaryTreePostorderTraversal","contentType":"directory"},{"name":"binaryTreePreorderTraversal","path":"algorithms/binaryTreePreorderTraversal","contentType":"directory"},{"name":"binaryTreeRightSideView","path":"algorithms/binaryTreeRightSideView","contentType":"directory"},{"name":"binaryTreeUpsideDown","path":"algorithms/binaryTreeUpsideDown","contentType":"directory"},{"name":"binaryTreeZigzagLevelOrderTraversal","path":"algorithms/binaryTreeZigzagLevelOrderTraversal","contentType":"directory"},{"name":"candy","path":"algorithms/candy","contentType":"directory"},{"name":"climbStairs","path":"algorithms/climbStairs","contentType":"directory"},{"name":"cloneGraph","path":"algorithms/cloneGraph","contentType":"directory"},{"name":"combinationSum","path":"algorithms/combinationSum","contentType":"directory"},{"name":"combinations","path":"algorithms/combinations","contentType":"directory"},{"name":"compareVersionNumbers","path":"algorithms/compareVersionNumbers","contentType":"directory"},{"name":"constructBinaryTreeFromInorderAndPostorderTraversal","path":"algorithms/constructBinaryTreeFromInorderAndPostorderTraversal","contentType":"directory"},{"name":"constructBinaryTreeFromPreorderAndInorderTraversal","path":"algorithms/constructBinaryTreeFromPreorderAndInorderTraversal","contentType":"directory"},{"name":"containerWithMostWater","path":"algorithms/containerWithMostWater","contentType":"directory"},{"name":"convertSortedArrayToBinarySearchTree","path":"algorithms/convertSortedArrayToBinarySearchTree","contentType":"directory"},{"name":"convertSortedListToBinarySearchTree","path":"algorithms/convertSortedListToBinarySearchTree","contentType":"directory"},{"name":"copyListWithRandomPointer","path":"algorithms/copyListWithRandomPointer","contentType":"directory"},{"name":"countAndSay","path":"algorithms/countAndSay","contentType":"directory"},{"name":"decodeWays","path":"algorithms/decodeWays","contentType":"directory"},{"name":"distinctSubsequences","path":"algorithms/distinctSubsequences","contentType":"directory"},{"name":"divideTwoInt","path":"algorithms/divideTwoInt","contentType":"directory"},{"name":"dungeonGame","path":"algorithms/dungeonGame","contentType":"directory"},{"name":"editDistance","path":"algorithms/editDistance","contentType":"directory"},{"name":"evaluateReversePolishNotation","path":"algorithms/evaluateReversePolishNotation","contentType":"directory"},{"name":"excelSheetColumnNumber","path":"algorithms/excelSheetColumnNumber","contentType":"directory"},{"name":"excelSheetColumnTitle","path":"algorithms/excelSheetColumnTitle","contentType":"directory"},{"name":"factorialTrailingZeroes","path":"algorithms/factorialTrailingZeroes","contentType":"directory"},{"name":"findMinimumInRotatedSortedArray","path":"algorithms/findMinimumInRotatedSortedArray","contentType":"directory"},{"name":"findPeakElement","path":"algorithms/findPeakElement","contentType":"directory"},{"name":"firstMissingPositive","path":"algorithms/firstMissingPositive","contentType":"directory"},{"name":"flattenBinaryTreeToLinkedList","path":"algorithms/flattenBinaryTreeToLinkedList","contentType":"directory"},{"name":"fractionToRecurringDecimal","path":"algorithms/fractionToRecurringDecimal","contentType":"directory"},{"name":"gasStation","path":"algorithms/gasStation","contentType":"directory"},{"name":"generateParentheses","path":"algorithms/generateParentheses","contentType":"directory"},{"name":"grayCode","path":"algorithms/grayCode","contentType":"directory"},{"name":"houseRobber","path":"algorithms/houseRobber","contentType":"directory"},{"name":"insertInterval","path":"algorithms/insertInterval","contentType":"directory"},{"name":"insertionSortList","path":"algorithms/insertionSortList","contentType":"directory"},{"name":"integerToRoman","path":"algorithms/integerToRoman","contentType":"directory"},{"name":"interleavingString","path":"algorithms/interleavingString","contentType":"directory"},{"name":"intersectionOfTwoLinkedLists","path":"algorithms/intersectionOfTwoLinkedLists","contentType":"directory"},{"name":"jumpGame","path":"algorithms/jumpGame","contentType":"directory"},{"name":"largestNumber","path":"algorithms/largestNumber","contentType":"directory"},{"name":"largestRectangleInHistogram","path":"algorithms/largestRectangleInHistogram","contentType":"directory"},{"name":"lengthOfLastWord","path":"algorithms/lengthOfLastWord","contentType":"directory"},{"name":"letterCombinationsOfAPhoneNumber","path":"algorithms/letterCombinationsOfAPhoneNumber","contentType":"directory"},{"name":"linkedListCycle","path":"algorithms/linkedListCycle","contentType":"directory"},{"name":"longestCommonPrefix","path":"algorithms/longestCommonPrefix","contentType":"directory"},{"name":"longestConsecutiveSequence","path":"algorithms/longestConsecutiveSequence","contentType":"directory"},{"name":"longestPalindromicSubstring","path":"algorithms/longestPalindromicSubstring","contentType":"directory"},{"name":"longestSubstringWithAtMostTwoDistinctCharacters","path":"algorithms/longestSubstringWithAtMostTwoDistinctCharacters","contentType":"directory"},{"name":"longestSubstringWithoutRepeatingCharacters","path":"algorithms/longestSubstringWithoutRepeatingCharacters","contentType":"directory"},{"name":"longestValidParentheses","path":"algorithms/longestValidParentheses","contentType":"directory"},{"name":"majorityElement","path":"algorithms/majorityElement","contentType":"directory"},{"name":"maxPointsOnALine","path":"algorithms/maxPointsOnALine","contentType":"directory"},{"name":"maximalRectangle","path":"algorithms/maximalRectangle","contentType":"directory"},{"name":"maximumDepthOfBinaryTree","path":"algorithms/maximumDepthOfBinaryTree","contentType":"directory"},{"name":"maximumGap","path":"algorithms/maximumGap","contentType":"directory"},{"name":"maximumProductSubarray","path":"algorithms/maximumProductSubarray","contentType":"directory"},{"name":"maximumSubArray","path":"algorithms/maximumSubArray","contentType":"directory"},{"name":"medianOfTwoSortedArrays","path":"algorithms/medianOfTwoSortedArrays","contentType":"directory"},{"name":"mergeIntervals","path":"algorithms/mergeIntervals","contentType":"directory"},{"name":"mergeKSortedLists","path":"algorithms/mergeKSortedLists","contentType":"directory"},{"name":"mergeTwoSortedArray","path":"algorithms/mergeTwoSortedArray","contentType":"directory"},{"name":"mergeTwoSortedList","path":"algorithms/mergeTwoSortedList","contentType":"directory"},{"name":"minStack","path":"algorithms/minStack","contentType":"directory"},{"name":"minimumDepthOfBinaryTree","path":"algorithms/minimumDepthOfBinaryTree","contentType":"directory"},{"name":"minimumPathSum","path":"algorithms/minimumPathSum","contentType":"directory"},{"name":"minimumWindowSubstring","path":"algorithms/minimumWindowSubstring","contentType":"directory"},{"name":"missingRanges","path":"algorithms/missingRanges","contentType":"directory"},{"name":"multiplyStrings","path":"algorithms/multiplyStrings","contentType":"directory"},{"name":"nQueens","path":"algorithms/nQueens","contentType":"directory"},{"name":"nextPermutation","path":"algorithms/nextPermutation","contentType":"directory"},{"name":"numberOf1Bits","path":"algorithms/numberOf1Bits","contentType":"directory"},{"name":"oneEditDistance","path":"algorithms/oneEditDistance","contentType":"directory"},{"name":"palindromeNumber","path":"algorithms/palindromeNumber","contentType":"directory"},{"name":"palindromePartitioning","path":"algorithms/palindromePartitioning","contentType":"directory"},{"name":"partitionList","path":"algorithms/partitionList","contentType":"directory"},{"name":"pascalTriangle","path":"algorithms/pascalTriangle","contentType":"directory"},{"name":"pathSum","path":"algorithms/pathSum","contentType":"directory"},{"name":"permutationSequence","path":"algorithms/permutationSequence","contentType":"directory"},{"name":"permutations","path":"algorithms/permutations","contentType":"directory"},{"name":"plusOne","path":"algorithms/plusOne","contentType":"directory"},{"name":"populatingNextRightPointersInEachNode","path":"algorithms/populatingNextRightPointersInEachNode","contentType":"directory"},{"name":"pow","path":"algorithms/pow","contentType":"directory"},{"name":"readNCharactersGivenRead4","path":"algorithms/readNCharactersGivenRead4","contentType":"directory"},{"name":"recoverBinarySearchTree","path":"algorithms/recoverBinarySearchTree","contentType":"directory"},{"name":"regularExpressionMatching","path":"algorithms/regularExpressionMatching","contentType":"directory"},{"name":"removeDuplicatesFromSortedArray","path":"algorithms/removeDuplicatesFromSortedArray","contentType":"directory"},{"name":"removeDuplicatesFromSortedList","path":"algorithms/removeDuplicatesFromSortedList","contentType":"directory"},{"name":"removeElement","path":"algorithms/removeElement","contentType":"directory"},{"name":"removeNthNodeFromEndOfList","path":"algorithms/removeNthNodeFromEndOfList","contentType":"directory"},{"name":"reorderList","path":"algorithms/reorderList","contentType":"directory"},{"name":"repeatedDNASequences","path":"algorithms/repeatedDNASequences","contentType":"directory"},{"name":"restoreIPAddresses","path":"algorithms/restoreIPAddresses","contentType":"directory"},{"name":"reverseBits","path":"algorithms/reverseBits","contentType":"directory"},{"name":"reverseInteger","path":"algorithms/reverseInteger","contentType":"directory"},{"name":"reverseLinkedList","path":"algorithms/reverseLinkedList","contentType":"directory"},{"name":"reverseNodesInKGroup","path":"algorithms/reverseNodesInKGroup","contentType":"directory"},{"name":"reverseWordsInAString","path":"algorithms/reverseWordsInAString","contentType":"directory"},{"name":"romanToInteger","path":"algorithms/romanToInteger","contentType":"directory"},{"name":"rotateArray","path":"algorithms/rotateArray","contentType":"directory"},{"name":"rotateImage","path":"algorithms/rotateImage","contentType":"directory"},{"name":"rotateList","path":"algorithms/rotateList","contentType":"directory"},{"name":"sameTree","path":"algorithms/sameTree","contentType":"directory"},{"name":"scrambleString","path":"algorithms/scrambleString","contentType":"directory"},{"name":"search2DMatrix","path":"algorithms/search2DMatrix","contentType":"directory"},{"name":"searchForRange","path":"algorithms/searchForRange","contentType":"directory"},{"name":"searchInRotatedSortedArray","path":"algorithms/searchInRotatedSortedArray","contentType":"directory"},{"name":"searchInsertPosition","path":"algorithms/searchInsertPosition","contentType":"directory"},{"name":"setMatrixZeroes","path":"algorithms/setMatrixZeroes","contentType":"directory"},{"name":"simplifyPath","path":"algorithms/simplifyPath","contentType":"directory"},{"name":"singleNumber","path":"algorithms/singleNumber","contentType":"directory"},{"name":"sortColors","path":"algorithms/sortColors","contentType":"directory"},{"name":"sortList","path":"algorithms/sortList","contentType":"directory"},{"name":"spiralMatrix","path":"algorithms/spiralMatrix","contentType":"directory"},{"name":"sqrt","path":"algorithms/sqrt","contentType":"directory"},{"name":"strStr","path":"algorithms/strStr","contentType":"directory"},{"name":"stringToIntegerAtoi","path":"algorithms/stringToIntegerAtoi","contentType":"directory"},{"name":"subsets","path":"algorithms/subsets","contentType":"directory"},{"name":"substringWithConcatenationOfAllWords","path":"algorithms/substringWithConcatenationOfAllWords","contentType":"directory"},{"name":"sudokuSolver","path":"algorithms/sudokuSolver","contentType":"directory"},{"name":"sumRootToLeafNumber","path":"algorithms/sumRootToLeafNumber","contentType":"directory"},{"name":"surroundedRegions","path":"algorithms/surroundedRegions","contentType":"directory"},{"name":"swapNodesInPairs","path":"algorithms/swapNodesInPairs","contentType":"directory"},{"name":"symmetricTree","path":"algorithms/symmetricTree","contentType":"directory"},{"name":"textJustification","path":"algorithms/textJustification","contentType":"directory"},{"name":"trappingRainWater","path":"algorithms/trappingRainWater","contentType":"directory"},{"name":"triangle","path":"algorithms/triangle","contentType":"directory"},{"name":"twoSum","path":"algorithms/twoSum","contentType":"directory"},{"name":"uniqueBinarySearchTrees","path":"algorithms/uniqueBinarySearchTrees","contentType":"directory"},{"name":"uniquePaths","path":"algorithms/uniquePaths","contentType":"directory"},{"name":"validNumber","path":"algorithms/validNumber","contentType":"directory"},{"name":"validPalindrome","path":"algorithms/validPalindrome","contentType":"directory"},{"name":"validParentheses","path":"algorithms/validParentheses","contentType":"directory"},{"name":"validSudoku","path":"algorithms/validSudoku","contentType":"directory"},{"name":"validateBinarySearchTree","path":"algorithms/validateBinarySearchTree","contentType":"directory"},{"name":"wildcardMatching","path":"algorithms/wildcardMatching","contentType":"directory"},{"name":"wordBreak","path":"algorithms/wordBreak","contentType":"directory"},{"name":"wordLadder","path":"algorithms/wordLadder","contentType":"directory"},{"name":"wordSearch","path":"algorithms/wordSearch","contentType":"directory"},{"name":"zigZagConversion","path":"algorithms/zigZagConversion","contentType":"directory"}],"totalCount":155},"":{"items":[{"name":"algorithms","path":"algorithms","contentType":"directory"},{"name":"scripts","path":"scripts","contentType":"directory"},{"name":"shell","path":"shell","contentType":"directory"},{"name":"README.md","path":"README.md","contentType":"file"}],"totalCount":4}},"fileTreeProcessingTime":7.490506,"foldersToFetch":[],"incompleteFileTree":false,"repo":{"id":34207631,"defaultBranch":"master","name":"leetcode","ownerLogin":"pxjw","currentUserCanPush":false,"isFork":true,"isEmpty":false,"createdAt":"2015-04-19T13:27:05.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/5189169?v=4","public":true,"private":false,"isOrgOwned":false},"codeLineWrapEnabled":false,"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"master","listCacheKey":"v0:1621021058.763218","canEdit":false,"refType":"branch","currentOid":"407b5bae7b4905f5d7de88d93c8aba6d9dd16abf"},"path":"algorithms/3Sum/3Sum.cpp","currentUser":null,"blob":{"rawLines":["// Source : https://oj.leetcode.com/problems/3sum/","// Author : Hao Chen","// Date : 2014-07-22","","/********************************************************************************** ","* ","* Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? ","* Find all unique triplets in the array which gives the sum of zero.","* ","* Note:","* ","* Elements in a triplet (a,b,c) must be in non-descending order. (ie, a ≤ b ≤ c)","* The solution set must not contain duplicate triplets.","* ","* For example, given array S = {-1 0 1 2 -1 -4},","* ","* A solution set is:","* (-1, 0, 1)","* (-1, -1, 2)","* ","* ","**********************************************************************************/","","#include \u003cstdio.h\u003e","#include \u003ciostream\u003e","#include \u003cvector\u003e","#include \u003cset\u003e","#include \u003calgorithm\u003e","using namespace std;","","","/*"," * Simlar like \"Two Number\" problem, we can have the simlar solution."," *"," * Suppose the input array is S[0..n-1], 3SUM can be solved in O(n^2) time on average by "," * inserting each number S[i] into a hash table, and then for each index i and j, "," * checking whether the hash table contains the integer - (s[i]+s[j])"," *"," * Alternatively, the algorithm below first sorts the input array and then tests all "," * possible pairs in a careful order that avoids the need to binary search for the pairs "," * in the sorted list, achieving worst-case O(n^n)"," *"," * Solution: Quadratic algorithm"," * http://en.wikipedia.org/wiki/3SUM"," *"," */","vector\u003cvector\u003cint\u003e \u003e threeSum(vector\u003cint\u003e \u0026num) {",""," vector\u003c vector\u003cint\u003e \u003e result;",""," //sort the array, this is the key"," sort(num.begin(), num.end());",""," int n = num.size();",""," for (int i=0; i\u003cn-2; i++) {"," //skip the duplication"," if (i\u003e0 \u0026\u0026 num[i-1]==num[i]) continue;"," int a = num[i];"," int low = i+1;"," int high = n-1;"," while ( low \u003c high ) {"," int b = num[low];"," int c = num[high];"," if (a+b+c == 0) {"," //got the soultion"," vector\u003cint\u003e v;"," v.push_back(a);"," v.push_back(b);"," v.push_back(c);"," result.push_back(v);"," // Continue search for all triplet combinations summing to zero."," //skip the duplication"," while(low\u003cn \u0026\u0026 num[low]==num[low+1]) low++; "," while(high\u003e0 \u0026\u0026 num[high]==num[high-1]) high--; "," low++;"," high--;"," } else if (a+b+c \u003e 0) {"," //skip the duplication"," while(high\u003e0 \u0026\u0026 num[high]==num[high-1]) high--;"," high--;"," } else{"," //skip the duplication"," while(low\u003cn \u0026\u0026 num[low]==num[low+1]) low++;"," low++;"," } "," }"," }"," return result;","}","","//using combination method could meet \u003c\u003cTime Limit Exceeded\u003e\u003e error","vector\u003cvector\u003cint\u003e \u003e combination(vector\u003cint\u003e \u0026v, int k);","bool isSumZero(vector\u003cint\u003e\u0026 v);","int sum(vector\u003cint\u003e\u0026 v);","","vector\u003cvector\u003cint\u003e \u003e threeSum2(vector\u003cint\u003e \u0026num) {"," vector\u003c vector\u003cint\u003e \u003e result;"," vector\u003c vector\u003cint\u003e \u003e r = combination(num, 3);"," for (int i=0; i\u003cr.size(); i++){"," if (isSumZero(r[i])){"," result.push_back(r[i]);"," }"," }"," return result;","}","","bool isSumZero(vector\u003cint\u003e\u0026 v){"," return sum(v)==0;","}","","int sum(vector\u003cint\u003e\u0026 v){"," int s=0;"," for(int i=0; i\u003cv.size(); i++){"," s += v[i];"," }"," return s;","}","","vector\u003cvector\u003cint\u003e \u003e combination(vector\u003cint\u003e \u0026v, int k) {",""," vector\u003cvector\u003cint\u003e \u003e result;"," vector\u003cint\u003e d;"," int n = v.size();"," for (int i=0; i\u003cn; i++){"," d.push_back( (i\u003ck) ? 1 : 0 );"," }",""," //1) from the left, find the [1,0] pattern, change it to [0,1]"," //2) move all of the 1 before the pattern to the most left side"," //3) check all of 1 move to the right"," while(1){"," vector\u003cint\u003e tmp;"," for(int x=0; x\u003cn; x++){"," if (d[x]) tmp.push_back(v[x]);"," }"," sort(tmp.begin(), tmp.end());"," result.push_back(tmp);"," //step 1), find [1,0] pattern"," int i;"," bool found = false;"," int ones =0;"," for(i=0; i\u003cn-1; i++){",""," if (d[i]==1 \u0026\u0026 d[i+1]==0){"," d[i]=0; d[i+1]=1;"," found = true;"," //step 2) move all of right 1 to the most left side"," for (int j=0; j\u003ci; j++){"," d[j]=( ones \u003e 0 ) ? 1 : 0;"," ones--;"," }"," break;"," }"," if (d[i]==1) ones++;"," }"," if (!found){"," break;"," }",""," }"," return result;","}","","","void printMatrix(vector\u003cvector\u003cint\u003e \u003e \u0026matrix)","{"," for(int i=0; i\u003cmatrix.size(); i++){"," printf(\"{\");"," for(int j=0; j\u003c matrix[i].size(); j++) {"," printf(\"%3d \", matrix[i][j]) ;"," }"," printf(\"}\\n\");"," }"," cout \u003c\u003c endl;","}","","","int main()","{"," //int a[] = {-1, 0, 1, 2, -1, 1, -4};"," int a[] = {-1, 1, 1, 1, -1, -1, 0,0,0};"," vector\u003cint\u003e n(a, a+sizeof(a)/sizeof(int));"," vector\u003c vector\u003cint\u003e \u003e result = threeSum(n);"," printMatrix(result); "," return 0;","}"],"stylingDirectives":null,"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/pxjw/leetcode/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"3Sum.cpp","displayUrl":"https://github.com/pxjw/leetcode/blob/master/algorithms/3Sum/3Sum.cpp?raw=true","headerInfo":{"blobSize":"5.01 KB","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":"https://desktop.github.com","isGitLfs":false,"onBranch":true,"shortPath":"0b38716","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fpxjw%2Fleetcode%2Fblob%2Fmaster%2Falgorithms%2F3Sum%2F3Sum.cpp","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"187","truncatedSloc":"166"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"C++","languageID":43,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/pxjw/leetcode/blob/master/algorithms/3Sum/3Sum.cpp","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/pxjw/leetcode/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/pxjw/leetcode/raw/refs/heads/master/algorithms/3Sum/3Sum.cpp","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":8,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":null},"copilotInfo":null,"copilotAccessAllowed":false,"modelsAccessAllowed":false,"modelsRepoIntegrationEnabled":false,"csrf_tokens":{"/pxjw/leetcode/branches":{"post":"VXLWEzbjJ_Rizhu69w4b0Fr20ETvs2AQyC_19HlTimkwbakyHiRjloDYdyKD_kJmoMZPbT0dtdVklXZaXGO9Cg"},"/repos/preferences":{"post":"6MkbJCQz5vzi1Dq1ld7-MOcmY2hxDsq_AyGd5tnbhsnhEUgYVbJ3G3OiZf3FUUpvPtRyPEK0MmD3S4Xol8bj1g"}}},"title":"leetcode/algorithms/3Sum/3Sum.cpp at master · pxjw/leetcode","appPayload":{"helpUrl":"https://docs.github.com","findFileWorkerPath":"/assets-cdn/worker/find-file-worker-263cab1760dd.js","findInFileWorkerPath":"/assets-cdn/worker/find-in-file-worker-1b17b3e7786a.js","githubDevUrl":null,"enabled_features":{"code_nav_ui_events":false,"react_blob_overlay":false,"accessible_code_button":true}}}