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: Amazon Interview Question

  • Posted on May 16, 2021May 16, 2021
  • Array

LeetCode 1742. Maximum Number of Balls in a Box

Description https://leetcode.com/problems/maximum-number-of-balls-in-a-box/ You are working in a ball factory where you have n balls numbered from lowLimit up to highLimit inclusive (i.e., n == highLimit – lowLimit +…

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

LeetCode 703. Kth Largest Element in a Stream

Description https://leetcode.com/problems/kth-largest-element-in-a-stream/ Design a class to find the kth largest element in a stream. Note that it is the kth largest element in the sorted…

Continue Reading
  • Posted on May 14, 2021May 14, 2021
  • Database

LeetCode 1789. Primary Department for Each Employee

Description https://leetcode.com/problems/primary-department-for-each-employee/ SQL Schema Table: Employee +—————+———+ | Column Name | Type | +—————+———+ | employee_id | int | | department_id…

Continue Reading
  • Posted on May 14, 2021August 3, 2021
  • LeetCode

LeetCode 1078. Occurrences After Bigram

Description https://leetcode.com/problems/occurrences-after-bigram/ Given words first and second, consider occurrences in some text of the form “first second third“, where second comes immediately after first, and third comes immediately after second. For…

Continue Reading
  • Posted on May 13, 2021May 13, 2021
  • Database

LeetCode 181. Employees Earning More Than Their Managers

Description https://leetcode.com/problems/employees-earning-more-than-their-managers/ SQL Schema The Employee table holds all employees including their managers. Every employee has an Id, and there is also…

Continue Reading
  • Posted on May 13, 2021
  • LeetCode

LeetCode 266. Palindrome Permutation

Description https://leetcode.com/problems/palindrome-permutation/ Given a string s, return true if a permutation of the string could form a palindrome. Example 1: Input: s =…

Continue Reading
  • Posted on May 13, 2021May 13, 2021
  • Bit Manipulation

LeetCode 762. Prime Number of Set Bits in Binary Representation

Description https://leetcode.com/problems/prime-number-of-set-bits-in-binary-representation/ Given two integers left and right, find the count of numbers in the range [left, right] (inclusive) having a prime number of set…

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

LeetCode 1103. Distribute Candies to People

Description https://leetcode.com/problems/distribute-candies-to-people/ We distribute some number of candies, to a row of n = num_people people in the following way: We then give 1 candy…

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

LeetCode 1305. All Elements in Two Binary Search Trees

Description https://leetcode.com/problems/all-elements-in-two-binary-search-trees/ Given two binary search trees root1 and root2. Return a list containing all the integers from both trees sorted in ascending order. Example 1: Input: root1 =…

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

LeetCode 1374. Generate a String With Characters That Have Odd Counts

Description https://leetcode.com/problems/generate-a-string-with-characters-that-have-odd-counts/ Given an integer n, return a string with n characters such that each character in such string occurs an odd number of times. The…

Continue Reading

Posts navigation

Previous Page Page 1 … Page 14 Page 15 Page 16 … 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