GoodTecher

Be a Good Techer and Tech for Good. www.goodtecher.com

Skip to content
Menu
  • Home
  • LeetCode
    • Array
    • Binary Search
    • Binary Tree
    • Depth First Search
    • Design
    • Dynamic Programming
    • Linked List
    • Math
    • Stack
    • String
    • Two Pointers
    • Union Find
  • Useful

Category: Two Pointers

  • Posted on January 31, 2021January 31, 2021
  • LeetCode

LeetCode 1099. Two Sum Less Than K

Description https://leetcode.com/problems/two-sum-less-than-k/ Given an array nums of integers and integer k, return the maximum sum such that there exists i < j with nums[i] + nums[j] = sum and sum <…

Continue Reading
  • Posted on January 30, 2021January 30, 2021
  • LeetCode

LeetCode 167. Two Sum II – Input array is sorted

Description https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/ Given an array of integers numbers that is already sorted in ascending order, find two numbers such that they add up…

Continue Reading
  • Posted on October 16, 2020January 3, 2021
  • LeetCode

LeetCode 246. Strobogrammatic Number

Description https://leetcode.com/problems/strobogrammatic-number/ A strobogrammatic number is a number that looks the same when rotated 180 degrees (looked at upside down).…

Continue Reading
  • Posted on March 15, 2020January 18, 2021
  • LeetCode

LeetCode 344. Reverse String

Description https://leetcode.com/problems/reverse-string/ Write a function that reverses a string. The input string is given as an array of characters char[]. Do…

Continue Reading
  • Posted on February 23, 2020July 27, 2021
  • Array

LeetCode 53. Maximum Subarray

Description https://leetcode.com/problems/maximum-subarray/ Given an integer array nums, find the contiguous subarray (containing at least one number) which has the largest sum…

Continue Reading
  • Posted on June 23, 2018July 28, 2018
  • LeetCode

LeetCode 18. 4Sum

Description https://leetcode.com/problems/4sum/description/ Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = target? Find all unique quadruplets in the array…

Continue Reading
  • Posted on June 9, 2018August 12, 2021
  • LeetCode

LeetCode 26. Remove Duplicates from Sorted Array

Description https://leetcode.com/problems/remove-duplicates-from-sorted-array/ Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length. Do not…

Continue Reading
  • Posted on March 30, 2018July 15, 2021
  • LeetCode

LeetCode 16. 3Sum Closest

Description https://leetcode.com/problems/3sum-closest/ Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the…

Continue Reading
  • Posted on March 24, 2018July 14, 2021
  • LeetCode

LeetCode 15. 3Sum

Description https://leetcode.com/problems/3sum/ Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j !=…

Continue Reading
  • Posted on January 13, 2018September 23, 2020
  • Array

LeetCode 11. Container With Most Water

Description https://leetcode.com/problems/container-with-most-water/ Given n non-negative integers a1, a2, …, an , where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two…

Continue Reading

Posts navigation

Page 1 Page 2 Next Page

Follow GoodTecher

Categories

  • HackerRank (1)
  • Interview (7)
  • LeetCode (588)
    • Array (185)
    • Backtracking (18)
    • Binary Search (19)
    • Binary Tree (63)
    • Bit Manipulation (15)
    • Database (40)
    • Depth First Search (6)
    • Design (10)
    • Dynamic Programming (17)
    • Graph (18)
    • Greedy (5)
    • Heap (1)
    • Linked List (26)
    • Math (36)
    • Recursion (3)
    • Sorting (11)
    • Stack (11)
    • String (95)
    • Two Pointers (12)
    • Union Find (2)
  • Machine Learning (7)
  • Technical Solutions (2)
  • Useful (3)
© Copyright 2025 – GoodTecher
Cell Theme by DesignOrbital ⋅ Powered by WordPress