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 May 3, 2021May 3, 2021
  • LeetCode

LeetCode 1844. Replace All Digits with Characters

Description https://leetcode.com/problems/replace-all-digits-with-characters/ You are given a 0-indexed string s that has lowercase English letters in its even indices and digits in its odd indices. There is a function shift(c,…

Continue Reading
  • Posted on May 3, 2021May 3, 2021
  • Array

LeetCode 1450. Number of Students Doing Homework at a Given Time

Description https://leetcode.com/problems/number-of-students-doing-homework-at-a-given-time/ Given two integer arrays startTime and endTime and given an integer queryTime. The ith student started doing their homework at the time startTime[i] and finished it at…

Continue Reading
  • Posted on May 3, 2021May 3, 2021
  • Array

LeetCode 1848. Minimum Distance to the Target Element

Description https://leetcode.com/problems/minimum-distance-to-the-target-element/ Given an integer array nums (0-indexed) and two integers target and start, find an index i such that nums[i] == target and abs(i – start) is minimized. Note that abs(x) is the absolute…

Continue Reading
  • Posted on May 2, 2021May 2, 2021
  • Design

LeetCode 1656. Design an Ordered Stream

Description https://leetcode.com/problems/design-an-ordered-stream/ There is a stream of n (idKey, value) pairs arriving in an arbitrary order, where idKey is an integer between 1 and n and value is a string. No two pairs…

Continue Reading
  • Posted on May 2, 2021May 2, 2021
  • Binary Tree

LeetCode 559. Maximum Depth of N-ary Tree

Description https://leetcode.com/problems/maximum-depth-of-n-ary-tree/ Given a n-ary tree, find its maximum depth. The maximum depth is the number of nodes along the…

Continue Reading
  • Posted on May 2, 2021May 2, 2021
  • LeetCode

LeetCode 1518. Water Bottles

Description https://leetcode.com/problems/water-bottles/ Given numBottles full water bottles, you can exchange numExchange empty water bottles for one full water bottle. The operation of drinking a…

Continue Reading
  • Posted on May 2, 2021May 2, 2021
  • LeetCode

LeetCode 504. Base 7

Description https://leetcode.com/problems/base-7/ Given an integer num, return a string of its base 7 representation. Example 1: Input: num = 100 Output: “202” Example 2:…

Continue Reading
  • Posted on May 1, 2021May 2, 2021
  • LeetCode

LeetCode 1837. Sum of Digits in Base K

Description https://leetcode.com/problems/sum-of-digits-in-base-k/ Given an integer n (in base 10) and a base k, return the sum of the digits of n after converting n from base 10 to base k. After converting, each digit should…

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

LeetCode 1523. Count Odd Numbers in an Interval Range

Description https://leetcode.com/problems/count-odd-numbers-in-an-interval-range/ Given two non-negative integers low and high. Return the count of odd numbers between low and high (inclusive). Example 1: Input: low = 3, high =…

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

LeetCode 520. Detect Capital

Description https://leetcode.com/problems/detect-capital/ We define the usage of capitals in a word to be right when one of the following cases…

Continue Reading

Posts navigation

Previous Page Page 1 … Page 17 Page 18 Page 19 … 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