Ann Miyaguchi

Coding Questions and Solutions

Ann Miyaguchi • 2023-09-05

Coding Questions

Most popular FAANG interview Questions

FinishedDateTopicQuestionLevelNotes
Yes8-24-2023ArrayTwo SumsEasyPerformance can barely be distinguished in my testing since I am only using the given sample arrays, my solution vs optimized has a difference of O(n^2) vs O(n)
Yes8-24-2023ArrayBest Time to Buy and Sell StockEasyFirst solution did not pass the time constraints
Yes8-25-2023ArrayContains DuplicateEasyUsed an unordered map
Yes8-25-2023ArrayContains Duplicate IIEasyUsed an unordered map, sliding window?
Yes8-27-2023Dynamic ProgrammingClimbing StairsEasy
Yes8-26-2023Dynamic ProgrammingVerifying an Alien DictionaryEasyIt was initially a bit difficult to understand what the problem was asking. However after I understood that the problem was not too difficult
Yes8-27-2023Dynamic ProgrammingPascal's TriangleEasyIterative solution wasn't so hard
Yes8-28-2023HashingRoman to IntegerEasyUsed two maps, one to keep track of the letters to values and the other for the exceptions
NoLinked ListReverse Linked ListEasy
Yes8-28-2023Linked ListLinked List CycleEasyA very inefficient method
NoLinked ListMerge Two Sorted ListsEasy
NoLinked ListMiddle of the Linked ListEasy