# Oracle Coding Interview Questions

> 340 DSA problems asked in Oracle coding interviews and online assessments, sorted easiest first with hints. Free practice for placements on InternHack.

Canonical: https://www.internhack.in/learn/dsa/companies/oracle
Last updated: 2026-11-28

340 DSA problems tagged as asked in Oracle coding interviews and online assessments. Below are the first 100 of 340: 70 easy, 0 medium and 30 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

## Oracle DSA problems, easiest first

1. [Add Strings](https://www.internhack.in/learn/dsa/problem/add-strings) (Easy)
2. [Average Selling Price](https://www.internhack.in/learn/dsa/problem/average-selling-price) (Easy)
3. [Backspace String Compare](https://www.internhack.in/learn/dsa/problem/backspace-string-compare) (Easy)
4. [Best Time to Buy and Sell Stock](https://www.internhack.in/learn/dsa/problem/best-time-to-buy-and-sell-stock) (Easy)
5. [Binary Search](https://www.internhack.in/learn/dsa/problem/binary-search) (Easy)
6. [Calculate Amount Paid in Taxes](https://www.internhack.in/learn/dsa/problem/calculate-amount-paid-in-taxes) (Easy)
7. [Can Place Flowers](https://www.internhack.in/learn/dsa/problem/can-place-flowers) (Easy)
8. [Climbing Stairs](https://www.internhack.in/learn/dsa/problem/climbing-stairs) (Easy)
9. [Closest Binary Search Tree Value](https://www.internhack.in/learn/dsa/problem/closest-binary-search-tree-value) (Easy)
10. [Contains Duplicate](https://www.internhack.in/learn/dsa/problem/contains-duplicate) (Easy)
11. [Convert Binary Number in a Linked List to Integer](https://www.internhack.in/learn/dsa/problem/convert-binary-number-in-a-linked-list-to-integer) (Easy)
12. [Count Binary Substrings](https://www.internhack.in/learn/dsa/problem/count-binary-substrings) (Easy)
13. [Count Distinct Numbers on Board](https://www.internhack.in/learn/dsa/problem/count-distinct-numbers-on-board) (Easy)
14. [Count Pairs Of Similar Strings](https://www.internhack.in/learn/dsa/problem/count-pairs-of-similar-strings) (Easy)
15. [Count Vowel Substrings of a String](https://www.internhack.in/learn/dsa/problem/count-vowel-substrings-of-a-string) (Easy)
16. [Counting Bits](https://www.internhack.in/learn/dsa/problem/counting-bits) (Easy)
17. [Decrypt String from Alphabet to Integer Mapping](https://www.internhack.in/learn/dsa/problem/decrypt-string-from-alphabet-to-integer-mapping) (Easy)
18. [Degree of an Array](https://www.internhack.in/learn/dsa/problem/degree-of-an-array) (Easy)
19. [Design HashMap](https://www.internhack.in/learn/dsa/problem/design-hashmap) (Easy)
20. [Diameter of Binary Tree](https://www.internhack.in/learn/dsa/problem/diameter-of-binary-tree) (Easy)
21. [Element Appearing More Than 25% In Sorted Array](https://www.internhack.in/learn/dsa/problem/element-appearing-more-than-25-in-sorted-array) (Easy)
22. [Find All Numbers Disappeared in an Array](https://www.internhack.in/learn/dsa/problem/find-all-numbers-disappeared-in-an-array) (Easy)
23. [Find Common Characters](https://www.internhack.in/learn/dsa/problem/find-common-characters) (Easy)
24. [Find Valid Pair of Adjacent Digits in String](https://www.internhack.in/learn/dsa/problem/find-valid-pair-of-adjacent-digits-in-string) (Easy)
25. [First Unique Character in a String](https://www.internhack.in/learn/dsa/problem/first-unique-character-in-a-string) (Easy)
26. [Fizz Buzz](https://www.internhack.in/learn/dsa/problem/fizz-buzz) (Easy)
27. [Greatest Common Divisor of Strings](https://www.internhack.in/learn/dsa/problem/greatest-common-divisor-of-strings) (Easy)
28. [Happy Number](https://www.internhack.in/learn/dsa/problem/happy-number) (Easy)
29. [Invert Binary Tree](https://www.internhack.in/learn/dsa/problem/invert-binary-tree) (Easy)
30. [Island Perimeter](https://www.internhack.in/learn/dsa/problem/island-perimeter) (Easy)
31. [Isomorphic Strings](https://www.internhack.in/learn/dsa/problem/isomorphic-strings) (Easy)
32. [Kth Missing Positive Number](https://www.internhack.in/learn/dsa/problem/kth-missing-positive-number) (Easy)
33. [Last Stone Weight](https://www.internhack.in/learn/dsa/problem/last-stone-weight) (Easy)
34. [Leaf-Similar Trees](https://www.internhack.in/learn/dsa/problem/leaf-similar-trees) (Easy)
35. [Linked List Cycle](https://www.internhack.in/learn/dsa/problem/linked-list-cycle) (Easy)
36. [Logger Rate Limiter](https://www.internhack.in/learn/dsa/problem/logger-rate-limiter) (Easy)
37. [Longest Common Prefix](https://www.internhack.in/learn/dsa/problem/longest-common-prefix) (Easy)
38. [Longest Palindrome](https://www.internhack.in/learn/dsa/problem/longest-palindrome) (Easy)
39. [Lucky Numbers in a Matrix](https://www.internhack.in/learn/dsa/problem/lucky-numbers-in-a-matrix) (Easy)
40. [Majority Element](https://www.internhack.in/learn/dsa/problem/majority-element) (Easy)
41. [Maximum Depth of Binary Tree](https://www.internhack.in/learn/dsa/problem/maximum-depth-of-binary-tree) (Easy)
42. [Meeting Rooms](https://www.internhack.in/learn/dsa/problem/meeting-rooms) (Easy)
43. [Merge Sorted Array](https://www.internhack.in/learn/dsa/problem/merge-sorted-array) (Easy)
44. [Merge Strings Alternately](https://www.internhack.in/learn/dsa/problem/merge-strings-alternately) (Easy)
45. [Merge Two Sorted Lists](https://www.internhack.in/learn/dsa/problem/merge-two-sorted-lists) (Easy)
46. [Minimum Absolute Difference](https://www.internhack.in/learn/dsa/problem/minimum-absolute-difference) (Easy)
47. [Missing Number](https://www.internhack.in/learn/dsa/problem/missing-number) (Easy)
48. [Move Zeroes](https://www.internhack.in/learn/dsa/problem/move-zeroes) (Easy)
49. [Next Greater Element I](https://www.internhack.in/learn/dsa/problem/next-greater-element-i) (Easy)
50. [Number of Students Unable to Eat Lunch](https://www.internhack.in/learn/dsa/problem/number-of-students-unable-to-eat-lunch) (Easy)
51. [Number of Valid Words in a Sentence](https://www.internhack.in/learn/dsa/problem/number-of-valid-words-in-a-sentence) (Easy)
52. [Palindrome Linked List](https://www.internhack.in/learn/dsa/problem/palindrome-linked-list) (Easy)
53. [Palindrome Number](https://www.internhack.in/learn/dsa/problem/palindrome-number) (Easy)
54. [Reformat Date](https://www.internhack.in/learn/dsa/problem/reformat-date) (Easy)
55. [Remove All Adjacent Duplicates In String](https://www.internhack.in/learn/dsa/problem/remove-all-adjacent-duplicates-in-string) (Easy)
56. [Remove Duplicates from Sorted Array](https://www.internhack.in/learn/dsa/problem/remove-duplicates-from-sorted-array) (Easy)
57. [Remove Duplicates from Sorted List](https://www.internhack.in/learn/dsa/problem/remove-duplicates-from-sorted-list) (Easy)
58. [Remove Linked List Elements](https://www.internhack.in/learn/dsa/problem/remove-linked-list-elements) (Easy)
59. [Reverse Linked List](https://www.internhack.in/learn/dsa/problem/reverse-linked-list) (Easy)
60. [Reverse Vowels of a String](https://www.internhack.in/learn/dsa/problem/reverse-vowels-of-a-string) (Easy)
61. [Roman to Integer](https://www.internhack.in/learn/dsa/problem/roman-to-integer) (Easy)
62. [Rotate String](https://www.internhack.in/learn/dsa/problem/rotate-string) (Easy)
63. [Search in a Binary Search Tree](https://www.internhack.in/learn/dsa/problem/search-in-a-binary-search-tree) (Easy)
64. [Sort Array by Increasing Frequency](https://www.internhack.in/learn/dsa/problem/sort-array-by-increasing-frequency) (Easy)
65. [Sqrt(x)](https://www.internhack.in/learn/dsa/problem/sqrtx) (Easy)
66. [Two Sum](https://www.internhack.in/learn/dsa/problem/two-sum) (Easy)
67. [Two Sum IV - Input is a BST](https://www.internhack.in/learn/dsa/problem/two-sum-iv-input-is-a-bst) (Easy)
68. [Valid Anagram](https://www.internhack.in/learn/dsa/problem/valid-anagram) (Easy)
69. [Valid Palindrome](https://www.internhack.in/learn/dsa/problem/valid-palindrome) (Easy)
70. [Valid Parentheses](https://www.internhack.in/learn/dsa/problem/valid-parentheses) (Easy)
71. [Alien Dictionary](https://www.internhack.in/learn/dsa/problem/alien-dictionary) (Hard)
72. [Basic Calculator](https://www.internhack.in/learn/dsa/problem/basic-calculator) (Hard)
73. [Binary Tree Maximum Path Sum](https://www.internhack.in/learn/dsa/problem/binary-tree-maximum-path-sum) (Hard)
74. [Candy](https://www.internhack.in/learn/dsa/problem/candy) (Hard)
75. [Count of Range Sum](https://www.internhack.in/learn/dsa/problem/count-of-range-sum) (Hard)
76. [Create Maximum Number](https://www.internhack.in/learn/dsa/problem/create-maximum-number) (Hard)
77. [Design In-Memory File System](https://www.internhack.in/learn/dsa/problem/design-in-memory-file-system) (Hard)
78. [Distinct Subsequences](https://www.internhack.in/learn/dsa/problem/distinct-subsequences) (Hard)
79. [Find Median from Data Stream](https://www.internhack.in/learn/dsa/problem/find-median-from-data-stream) (Hard)
80. [First Missing Positive](https://www.internhack.in/learn/dsa/problem/first-missing-positive) (Hard)
81. [Frog Jump](https://www.internhack.in/learn/dsa/problem/frog-jump) (Hard)
82. [Integer to English Words](https://www.internhack.in/learn/dsa/problem/integer-to-english-words) (Hard)
83. [Largest Rectangle in Histogram](https://www.internhack.in/learn/dsa/problem/largest-rectangle-in-histogram) (Hard)
84. [Longest Valid Parentheses](https://www.internhack.in/learn/dsa/problem/longest-valid-parentheses) (Hard)
85. [Median of Two Sorted Arrays](https://www.internhack.in/learn/dsa/problem/median-of-two-sorted-arrays) (Hard)
86. [Merge k Sorted Lists](https://www.internhack.in/learn/dsa/problem/merge-k-sorted-lists) (Hard)
87. [Minimum Window Substring](https://www.internhack.in/learn/dsa/problem/minimum-window-substring) (Hard)
88. [N-Queens](https://www.internhack.in/learn/dsa/problem/n-queens) (Hard)
89. [Regular Expression Matching](https://www.internhack.in/learn/dsa/problem/regular-expression-matching) (Hard)
90. [Remove Invalid Parentheses](https://www.internhack.in/learn/dsa/problem/remove-invalid-parentheses) (Hard)
91. [Serialize and Deserialize Binary Tree](https://www.internhack.in/learn/dsa/problem/serialize-and-deserialize-binary-tree) (Hard)
92. [Sliding Window Maximum](https://www.internhack.in/learn/dsa/problem/sliding-window-maximum) (Hard)
93. [Sudoku Solver](https://www.internhack.in/learn/dsa/problem/sudoku-solver) (Hard)
94. [Text Justification](https://www.internhack.in/learn/dsa/problem/text-justification) (Hard)
95. [Trapping Rain Water](https://www.internhack.in/learn/dsa/problem/trapping-rain-water) (Hard)
96. [Trapping Rain Water II](https://www.internhack.in/learn/dsa/problem/trapping-rain-water-ii) (Hard)
97. [Wildcard Matching](https://www.internhack.in/learn/dsa/problem/wildcard-matching) (Hard)
98. [Word Break II](https://www.internhack.in/learn/dsa/problem/word-break-ii) (Hard)
99. [Word Ladder](https://www.internhack.in/learn/dsa/problem/word-ladder) (Hard)
100. [Word Search II](https://www.internhack.in/learn/dsa/problem/word-search-ii) (Hard)

## Prepare for the rest of the Oracle process

- [Aptitude questions by company](https://www.internhack.in/learn/aptitude/companies)
- [Technical interview questions](https://www.internhack.in/learn/interview)
- [Free ATS resume check](https://www.internhack.in/ats-score/try), no signup

## Other companies

- [Google](https://www.internhack.in/learn/dsa/companies/google) (2217)
- [Amazon](https://www.internhack.in/learn/dsa/companies/amazon) (1938)
- [Meta](https://www.internhack.in/learn/dsa/companies/meta) (1387)
- [Microsoft](https://www.internhack.in/learn/dsa/companies/microsoft) (1352)
- [Bloomberg](https://www.internhack.in/learn/dsa/companies/bloomberg) (1173)
- [Tiktok](https://www.internhack.in/learn/dsa/companies/tiktok) (383)
- [Uber](https://www.internhack.in/learn/dsa/companies/uber) (381)
- [Apple](https://www.internhack.in/learn/dsa/companies/apple) (356)
- [Goldman Sachs](https://www.internhack.in/learn/dsa/companies/goldman-sachs) (270)
- [Adobe](https://www.internhack.in/learn/dsa/companies/adobe) (227)
- [TCS](https://www.internhack.in/learn/dsa/companies/tcs) (217)
- [Salesforce](https://www.internhack.in/learn/dsa/companies/salesforce) (189)
- [Linkedin](https://www.internhack.in/learn/dsa/companies/linkedin) (180)
- [Zoho](https://www.internhack.in/learn/dsa/companies/zoho) (179)
- [IBM](https://www.internhack.in/learn/dsa/companies/ibm) (170)
- [Infosys](https://www.internhack.in/learn/dsa/companies/infosys) (158)
- [Walmart Labs](https://www.internhack.in/learn/dsa/companies/walmart-labs) (152)
- [Accenture](https://www.internhack.in/learn/dsa/companies/accenture) (144)
- [Nvidia](https://www.internhack.in/learn/dsa/companies/nvidia) (137)
- [Yandex](https://www.internhack.in/learn/dsa/companies/yandex) (134)
- [DE Shaw](https://www.internhack.in/learn/dsa/companies/de-shaw) (124)
- [Visa](https://www.internhack.in/learn/dsa/companies/visa) (124)
- [Flipkart](https://www.internhack.in/learn/dsa/companies/flipkart) (117)
- [Paypal](https://www.internhack.in/learn/dsa/companies/paypal) (106)

## Related

- [Home](https://www.internhack.in/)
- [Learn](https://www.internhack.in/learn)
- [DSA by company](https://www.internhack.in/learn/dsa/companies)
