MercadoLibre Coding Interview Questions
26 MercadoLibre coding interview problems with full optimal solutions — 13 easy, 10 medium, 3 hard. Every problem ships with multiple approaches (brute-force first, then the optimal), complexity tables for each, company-specific tips on what an MercadoLibre interviewer values, and a FAQ section.
Showing 26 problems of 26
- #1easyfoundational
1. Two Sum
Find two indices in an array whose values sum to a target.
- #2easyfoundational
2. Valid Parentheses
Determine if a string of brackets is properly matched and nested.
- #3easyfoundational
3. Merge Two Sorted Lists
Merge two sorted linked lists into one sorted list.
- #4easyfoundational
4. Remove Duplicates from Sorted Array
Remove duplicates from a sorted array in place and return the new length.
- #5easyfoundational
5. Remove Element
Remove all occurrences of a value from an array in place.
- #6easyfoundational
6. Search Insert Position
Find the index where a target should be inserted in a sorted array.
- #7easyfoundational
7. Plus One
Add one to a number represented as an array of digits.
- #8easyfoundational
8. Merge Sorted Array
Merge two sorted arrays in place into the first one.
- #9easyfoundational
9. Same Tree
Decide whether two binary trees are structurally identical with equal node values.
- #10easyfoundational
10. Maximum Depth of Binary Tree
Compute the depth of the deepest leaf in a binary tree.
- #11easyfoundational
11. Best Time to Buy and Sell Stock
Find the largest single buy-then-sell profit from a price series.
- #12easyfoundational
12. Single Number
Find the integer that appears exactly once when every other appears twice.
- #13easyfoundational
13. Linked List Cycle
Detect whether a singly linked list contains a cycle.
- #14mediumfoundational
14. Add Two Numbers
Sum two integers represented as reverse-order linked lists, digit by digit.
- #15mediumfoundational
15. Longest Substring Without Repeating Characters
Find the length of the longest contiguous substring without repeated characters.
- #16mediumfoundational
16. Container With Most Water
Find two lines that together with the x-axis form the largest area container.
- #17mediumfoundational
17. 3Sum
Return all unique triplets in an array that sum to zero.
- #18mediumfoundational
18. Group Anagrams
Cluster strings that are anagrams of each other.
- #19mediumfoundational
19. Spiral Matrix
Return all elements of a matrix in spiral order.
- #20mediumfoundational
20. Jump Game
Decide whether you can reach the last index starting from the first index with bounded jumps.
- #21mediumfoundational
21. Merge Intervals
Merge overlapping intervals into the smallest set of non-overlapping ranges.
- #22mediumfoundational
22. Word Search
Decide whether a word can be traced through neighboring cells of a 2D grid.
- #23mediumfoundational
23. LRU Cache
Design a least-recently-used cache supporting O(1) get and put.
- #24hardfoundational
24. Median of Two Sorted Arrays
Find the median of two sorted arrays in logarithmic time.
- #25hardfoundational
25. Merge k Sorted Lists
Merge k sorted linked lists into one sorted list efficiently.
- #26hardfoundational
26. Trapping Rain Water
Compute how much rainwater is trapped between bars of an elevation map.