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

Tag: Microsoft Interview Question

  • Posted on March 23, 2021March 23, 2021
  • Array

LeetCode 1636. Sort Array by Increasing Frequency

Description https://leetcode.com/problems/sort-array-by-increasing-frequency/ Given an array of integers nums, sort the array in increasing order based on the frequency of the values. If multiple…

Continue Reading
  • Posted on March 23, 2021March 23, 2021
  • Array

LeetCode 566. Reshape the Matrix

Description https://leetcode.com/problems/reshape-the-matrix/ In MATLAB, there is a very useful function called ‘reshape’, which can reshape a matrix into a new…

Continue Reading
  • Posted on March 23, 2021March 23, 2021
  • Array

LeetCode 1200. Minimum Absolute Difference

Description https://leetcode.com/problems/minimum-absolute-difference/ Given an array of distinct integers arr, find all pairs of elements with the minimum absolute difference of any two elements.  Return a…

Continue Reading
  • Posted on March 22, 2021March 22, 2021
  • Array

LeetCode 1399. Count Largest Group

Description https://leetcode.com/problems/count-largest-group/ Given an integer n. Each number from 1 to n is grouped according to the sum of its digits.  Return how many groups have the…

Continue Reading
  • Posted on March 22, 2021March 22, 2021
  • LeetCode

LeetCode 575. Distribute Candies

Description https://leetcode.com/problems/distribute-candies/ Alice has n candies, where the ith candy is of type candyType[i]. Alice noticed that she started to gain weight, so she visited…

Continue Reading
  • Posted on March 22, 2021March 22, 2021
  • Array

LeetCode 705. Design HashSet

Description https://leetcode.com/problems/design-hashset/ Design a HashSet without using any built-in hash table libraries. Implement MyHashSet class: void add(key) Inserts the value key into the HashSet. bool…

Continue Reading
  • Posted on March 21, 2021March 21, 2021
  • Array

LeetCode 442. Find All Duplicates in an Array

Description https://leetcode.com/problems/find-all-duplicates-in-an-array/ Given an array of integers, 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find…

Continue Reading
  • Posted on March 20, 2021March 20, 2021
  • LeetCode

LeetCode 258. Add Digits

Description https://leetcode.com/problems/add-digits/ Given an integer num, repeatedly add all its digits until the result has only one digit, and return it.…

Continue Reading
  • Posted on March 19, 2021March 19, 2021
  • LeetCode

LeetCode 884. Uncommon Words from Two Sentences

Description https://leetcode.com/problems/uncommon-words-from-two-sentences/ We are given two sentences A and B.  (A sentence is a string of space separated words.  Each word consists only of lowercase letters.) A…

Continue Reading
  • Posted on March 19, 2021March 19, 2021
  • Bit Manipulation

LeetCode 1009. Complement of Base 10 Integer

Description https://leetcode.com/problems/complement-of-base-10-integer/ Every non-negative integer N has a binary representation.  For example, 5 can be represented as “101” in binary, 11 as “1011” in binary, and so on.  Note that…

Continue Reading

Posts navigation

Previous Page Page 1 … Page 28 Page 29 Page 30 … Page 55 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