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: Sorting

  • Posted on February 9, 2021February 9, 2021
  • LeetCode

LeetCode 912. Sort an Array

Description https://leetcode.com/problems/sort-an-array/ Given an array of integers nums, sort the array in ascending order. Example 1: Input: nums = [5,2,3,1] Output:…

Continue Reading
  • Posted on February 9, 2021February 9, 2021
  • LeetCode

LeetCode 148. Sort List

Description https://leetcode.com/problems/shuffle-the-array/ Given the head of a linked list, return the list after sorting it in ascending order. Follow up: Can you sort the linked…

Continue Reading
  • Posted on October 4, 2020October 4, 2020
  • LeetCode

LeetCode 23. Merge k Sorted Lists

Description https://leetcode.com/problems/merge-k-sorted-lists/ You are given an array of k linked-lists lists, each linked-list is sorted in ascending order. Merge all the linked-lists into…

Continue Reading
  • Posted on July 29, 2020February 3, 2021
  • Dynamic Programming

LeetCode 322. Coin Change

Description https://leetcode.com/problems/coin-change/ You are given coins of different denominations and a total amount of money amount. Write a function to compute…

Continue Reading
  • Posted on July 22, 2020July 22, 2020
  • Binary Tree

LeetCode 116. Populating Next Right Pointers in Each Node

Description https://leetcode.com/problems/search-a-2d-matrix-ii/ You are given a perfect binary tree where all leaves are on the same level, and every parent has two children.…

Continue Reading
  • Posted on July 21, 2020July 21, 2020
  • Binary Search

LeetCode 240. Search a 2D Matrix II

Description https://leetcode.com/problems/search-a-2d-matrix-ii/ Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers…

Continue Reading
  • Posted on July 20, 2020February 8, 2021
  • LeetCode

LeetCode 56. Merge Intervals

Description https://leetcode.com/problems/merge-intervals/ Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals that…

Continue Reading

Follow GoodTecher

Categories

  • HackerRank (1)
  • Interview (5)
  • LeetCode (267)
    • Array (71)
    • Backtracking (10)
    • Binary Search (12)
    • Binary Tree (25)
    • Bit Manipulation (5)
    • Database (18)
    • Depth First Search (6)
    • Design (4)
    • Dynamic Programming (13)
    • Graph (3)
    • Linked List (15)
    • Math (22)
    • Recursion (1)
    • Sorting (7)
    • Stack (10)
    • String (34)
    • Two Pointers (12)
    • Union Find (2)
  • Machine Learning (7)
  • Technical Solutions (2)
  • Useful (3)
© Copyright 2021 – GoodTecher
Cell Theme by DesignOrbital ⋅ Powered by WordPress