Amazon 2024 Papers
Previous year papers with coding questions
Practice Amazon placement paper coding questions with detailed solutions. Access Amazon OA coding problems in Java, C++, Python.
Amazon’s coding round focuses on data structures and algorithms with a bar for clean code and optimal solutions. The online assessment (OA) typically has 2 coding problems in about 90 minutes; technical interviews extend into DSA, system design (for senior roles), and Leadership Principles. Difficulty ranges from medium to hard, with emphasis on graphs, sliding window, dynamic programming, and bit manipulation. Practicing LeetCode-style problems and explaining your approach clearly will help.
Amazon OA Coding Section:
Solution (Java):
public int[] twoSum(int[] nums, int target) { Map<Integer, Integer> map = new HashMap<>(); for (int i = 0; i < nums.length; i++) { int complement = target - nums[i]; if (map.containsKey(complement)) { return new int[]{map.get(complement), i}; } map.put(nums[i], i); } return new int[]{};}Time Complexity: O(n)
Solution (Java):
public int lengthOfLongestSubstring(String s) { Map<Character, Integer> map = new HashMap<>(); int maxLen = 0; int left = 0;
for (int right = 0; right < s.length(); right++) { char c = s.charAt(right); if (map.containsKey(c) && map.get(c) >= left) { left = map.get(c) + 1; } map.put(c, right); maxLen = Math.max(maxLen, right - left + 1); }
return maxLen;}Time Complexity: O(n)
Amazon frequently tests graphs (BFS/DFS, shortest path, topological sort), sliding window and two pointers, dynamic programming (1D and 2D), bit manipulation, and hash maps/sets. Strong emphasis on time and space complexity and handling edge cases. Leadership Principles often tie into how you approach problems and communicate.
Amazon 2024 Papers
Previous year papers with coding questions
Amazon Technical Questions
Technical questions with solutions
Amazon Main Page
Complete Amazon placement guide
Practice Amazon coding questions regularly. Focus on DSA fundamentals, optimal solutions, and clear communication—aligned with Amazon’s bar.
Last updated: February 2026