Max Average Stock Price Amazon OA 2022 Solution

Stock Price Amazon OA

Want to solve Max Average Stock Price Amazon OA?, if yes then this article is for you. We have research and collected a bundle of questions which was asked in Amazon OA in the year of 2021 and 2022. Today, we are going to see another problem from amazon oa called Stock Price which was … Read more

Top K Frequent Words Solution Amazon OA 2022

Top K Frequent Words Amazon Online Assessment

Top K Frequent Words Solution Given a non-empty list of words, return the k most frequent elements. Your answer should be sorted by frequency from highest to lowest. If two words have the same frequency, then the word with the lower alphabetical order comes first. Example 1: Input: [“i”, “love”, “leetcode”, “i”, “love”, “coding”], k … Read more

Reorder Data in Log Files Solution Amazon OA 2022

Reorder Data in Log Files Amazon Online Assessment

Reorder Data in Log Files Solution You are given an array of logs. Each log is a space-delimited string of words, where the first word is the identifier. There are two types of logs: Reorder these logs so that: Return the final order of the logs. Example 1: Input: logs = [“dig1 8 1 5 … Read more

Shopping Patterns Solution Amazon OA 2022

Shopping Patterns Amazon Online Assessment

Shopping Patterns Minimum Degree of a Connected Trio in a Graph You are given an undirected graph. You are given an integer n which is the number of nodes in the graph and an array edges, where each edges[i] = [ui, vi] indicates that there is an undirected edge between ui and vi. A connected … Read more

Grid Connections Amazon OA 2022

Grid Connections Amazon OA Solution

Grid Connections Amazon OA Solution A supply chain manager at Amazon Logistics wants to determine the number of connections between warehouses, represented as nodes on a grid. A grid with m rows and n columns is used to form a cluster of nodes. If a point in the grid has a value of 1, then … Read more