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 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, 2020March 15, 2020
  • 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, 2020September 3, 2020
  • 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 and…

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, 2018April 12, 2020
  • 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, 2018March 30, 2018
  • LeetCode

LeetCode 16. 3Sum Closest

Description https://leetcode.com/problems/3sum-closest/description/ Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return…

Continue Reading
  • Posted on March 24, 2018January 3, 2021
  • LeetCode

LeetCode 15. 3Sum

Description Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the sum…

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
  • Posted on January 6, 2018March 25, 2018
  • LeetCode

LeetCode 42. Trapping Rain Water

Description https://leetcode.com/problems/trapping-rain-water/description/ Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water…

Continue Reading
  • Posted on February 12, 2017January 13, 2021
  • LeetCode

LeetCode 1. Two Sum

Description https://leetcode.com/problems/two-sum/ Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.…

Continue Reading

Follow GoodTecher

Categories

  • HackerRank (1)
  • Interview (5)
  • LeetCode (185)
    • Array (40)
    • Backtracking (10)
    • Binary Search (11)
    • Binary Tree (20)
    • Bit Manipulation (4)
    • Depth First Search (6)
    • Design (4)
    • Dynamic Programming (13)
    • Graph (3)
    • Linked List (13)
    • Math (16)
    • Sorting (5)
    • Stack (8)
    • String (23)
    • Two Pointers (10)
    • Union Find (2)
  • Machine Learning (7)
  • Technical Solutions (2)
  • Useful (2)
© Copyright 2021 – GoodTecher
Cell Theme by DesignOrbital ⋅ Powered by WordPress