LeetCode Problems for Oracle

LeetCode Problems for Oracle

When we think about databases, the first thing that comes to our mind is Oracle. It is one of the biggest database management companies that provides its services to a lot of businesses. Oracle provides competitive benefits for its employees. In this post, we’ve collected some common LeetCode problems for Oracle. These are the problems you should solve before you apply to Oracle.

IDTitleAcceptanceDifficultyFrequency
425Word Squares47.7%Hard1.373784
146LRU Cache33.2%Medium1.223338
352Data Stream as Disjoint Intervals47.3%Hard1.072892
450Delete Node in a BST43.1%Medium0.922445
362Design Hit Counter63.7%Medium0.894460
1Two Sum45.6%Easy0.867108
554Brick Wall50.0%Medium0.848711
23Merge k Sorted Lists40.2%Hard0.744432
253Meeting Rooms II45.7%Medium0.593986
403Frog Jump39.7%Hard0.584717
200Number of Islands46.8%Medium0.449298
297Serialize and Deserialize Binary Tree47.5%Hard0.414186
56Merge Intervals39.3%Medium0.406102
394Decode String50.0%Medium0.379295
227Basic Calculator II36.9%Medium0.370982
415Add Strings47.5%Easy0.356560
17Letter Combinations of a Phone Number46.8%Medium0.335147
73Set Matrix Zeroes43.1%Medium0.333601
33Search in Rotated Sorted Array34.5%Medium0.330352
54Spiral Matrix34.1%Medium0.316376
53Maximum Subarray46.5%Easy0.312350
1242Web Crawler Multithreaded45.9%Medium0.309617
706Design HashMap61.3%Easy0.306079
636Exclusive Time of Functions51.9%Medium0.292582
692Top K Frequent Words51.8%Medium0.276682
599Minimum Index Sum of Two Lists50.7%Easy0.272347
173Binary Search Tree Iterator56.6%Medium0.267662
20Valid Parentheses39.0%Easy0.265897
127Word Ladder29.6%Medium0.257624
126Word Ladder II22.1%Hard0.255039
75Sort Colors47.3%Medium0.248055
535Encode and Decode TinyURL79.9%Medium0.237403
545Boundary of Binary Tree38.9%Medium0.235382
1188Design Bounded Blocking Queue70.5%Medium0.233007
722Remove Comments34.6%Medium0.229733
1190Reverse Substrings Between Each Pair of Parentheses61.5%Medium0.221284
236Lowest Common Ancestor of a Binary Tree45.7%Medium0.208266
232Implement Queue using Stacks49.6%Easy0.206154
37Sudoku Solver43.6%Hard0.203090
138Copy List with Random Pointer36.4%Medium0.201770
426Convert Binary Search Tree to Sorted Doubly Linked List59.1%Medium0.199332
42Trapping Rain Water48.9%Hard0.193630
206Reverse Linked List62.5%Easy0.191793
46Permutations63.5%Medium0.188166
438Find All Anagrams in a String43.3%Medium0.185647
380Insert Delete GetRandom O(1)47.5%Medium0.182198
1212Team Scores in Football Tournament55.8%Medium0.177280
238Product of Array Except Self60.1%Medium0.176446
230Kth Smallest Element in a BST60.2%Medium0.175865
2Add Two Numbers33.9%Medium0.170862
43Multiply Strings33.9%Medium0.170616
609Find Duplicate File in System59.5%Medium0.169718
349Intersection of Two Arrays62.5%Easy0.167138
715Range Module38.5%Hard0.163629
121Best Time to Buy and Sell Stock50.5%Easy0.158900
141Linked List Cycle41.1%Easy0.158279
139Word Break40.1%Medium0.152602
314Binary Tree Vertical Order Traversal45.3%Medium0.151486
21Merge Two Sorted Lists53.5%Easy0.151106
863All Nodes Distance K in Binary Tree55.4%Medium0.143157
34Find First and Last Position of Element in Sorted Array36.2%Medium0.142575
208Implement Trie (Prefix Tree)49.4%Medium0.136585
10Regular Expression Matching26.8%Hard0.136322
5Longest Palindromic Substring29.5%Medium0.136315
1044Longest Duplicate Substring31.9%Hard0.135137
195Tenth Line33.0%Easy0.132938
4Median of Two Sorted Arrays29.6%Hard0.131624
3Longest Substring Without Repeating Characters30.4%Medium0.131471
214Shortest Palindrome29.8%Hard0.130265
958Check Completeness of a Binary Tree52.1%Medium0.128844
694Number of Distinct Islands56.0%Medium0.125163
163Missing Ranges24.3%Medium0.118218
207Course Schedule43.1%Medium0.117257
160Intersection of Two Linked Lists40.6%Easy0.115856
101Symmetric Tree46.8%Easy0.115838
503Next Greater Element II56.5%Medium0.112427
344Reverse String68.5%Easy0.111449
965Univalued Binary Tree67.7%Easy0.111324
412Fizz Buzz62.3%Easy0.108914
204Count Primes31.5%Easy0.107558
295Find Median from Data Stream44.3%Hard0.105021
273Integer to English Words27.1%Hard0.103809
417Pacific Atlantic Water Flow41.1%Medium0.100083
12Integer to Roman55.1%Medium0.099818
13Roman to Integer55.7%Easy0.098847
71Simplify Path32.6%Medium0.097543
1236Web Crawler64.3%Medium0.095310
215Kth Largest Element in an Array55.4%Medium0.093264
794Valid Tic-Tac-Toe State32.6%Medium0.092231
243Shortest Word Distance61.0%Easy0.089522
652Find Duplicate Subtrees50.2%Medium0.089079
109Convert Sorted List to Binary Search Tree47.7%Medium0.087011
449Serialize and Deserialize BST52.0%Medium0.086964
116Populating Next Right Pointers in Each Node45.2%Medium0.086366
114Flatten Binary Tree to Linked List49.3%Medium0.081372
242Valid Anagram56.9%Easy0.080930
29Divide Two Integers16.4%Medium0.079964
57Insert Interval33.5%Hard0.079305
341Flatten Nested List Iterator52.9%Medium0.077633
49Group Anagrams56.9%Medium0.074346
721Accounts Merge48.8%Medium0.073494
155Min Stack44.5%Easy0.073402
505The Maze II47.7%Medium0.071331
205Isomorphic Strings39.8%Easy0.070056
136Single Number65.5%Easy0.069380
284Peeking Iterator45.7%Medium0.068676
289Game of Life54.5%Medium0.067564
199Binary Tree Right Side View54.1%Medium0.067481
560Subarray Sum Equals K43.9%Medium0.066366
1197Minimum Knight Moves36.1%Medium0.065621
153Sum26.8%Medium0.064469
51N-Queens46.6%Hard0.064021
1170Compare Strings by Frequency of the Smallest Character58.7%Easy0.060901
305Number of Islands II40.1%Hard0.060078
355Design Twitter30.3%Medium0.058240
45Jump Game II30.6%Hard0.058223
741Cherry Pickup33.9%Hard0.056512
41First Missing Positive32.0%Hard0.056273
32Longest Valid Parentheses28.4%Hard0.055631
128Longest Consecutive Sequence45.1%Hard0.055274
7Reverse Integer25.8%Easy0.054824
76Minimum Window Substring34.6%Hard0.054733
836Rectangle Overlap48.6%Easy0.053712
894All Possible Full Binary Trees75.2%Medium0.052436
94Binary Tree Inorder Traversal63.3%Medium0.052376
767Reorganize String48.7%Medium0.052163
14Longest Common Prefix35.4%Easy0.051846
209Minimum Size Subarray Sum38.2%Medium0.051462
235Lowest Common Ancestor of a Binary Search Tree49.9%Easy0.050282
695Max Area of Island62.7%Medium0.049807
518Coin Change 250.2%Medium0.049195
445Add Two Numbers II54.5%Medium0.048435
125Valid Palindrome36.7%Easy0.047702
876Middle of the Linked List68.4%Easy0.046728
240Search a 2D Matrix II43.2%Medium0.046476
283Move Zeroes57.8%Easy0.045195
36Valid Sudoku48.7%Medium0.044523
529Minesweeper59.1%Medium0.044255
268Missing Number51.7%Easy0.043089
184Department Highest Salary36.7%Medium0.041672
532K-diff Pairs in an Array31.6%Easy0.041672
92Reverse Linked List II38.8%Medium0.041073
1008Construct Binary Search Tree from Preorder Traversal78.4%Medium0.041026
79Word Search35.6%Medium0.040808
212Word Search II34.9%Hard0.038811
113Path Sum II46.7%Medium0.038577
24Swap Nodes in Pairs50.4%Medium0.038266
19Remove Nth Node From End of List35.2%Medium0.037049
322Coin Change35.5%Medium0.035696
973K Closest Points to Origin63.8%Medium0.035550
59Spiral Matrix II53.9%Medium0.035187
105Construct Binary Tree from Preorder and Inorder Traversal48.8%Medium0.034667
543Diameter of Binary Tree48.4%Easy0.032708
350Intersection of Two Arrays II51.4%Easy0.032128
150Evaluate Reverse Polish Notation36.3%Medium0.031526
55Jump Game34.6%Medium0.030985
38Count and Say44.6%Easy0.030956
179Largest Number28.8%Medium0.030930
151Reverse Words in a String21.9%Medium0.030683
347Top K Frequent Elements61.2%Medium0.029662
496Next Greater Element I63.8%Easy0.029462
456132 Pattern28.9%Medium0.029306
169Majority Element58.7%Easy0.029058
62Unique Paths54.1%Medium0.028537
938Range Sum of BST81.3%Easy0.027755
437Path Sum III47.2%Medium0.027085
796Rotate String49.6%Easy0.027010
103Binary Tree Zigzag Level Order Traversal48.3%Medium0.026991
1305All Elements in Two Binary Search Trees76.1%Medium0.026282
98Validate Binary Search Tree27.8%Medium0.026187
91Decode Ways24.7%Medium0.023662
26Remove Duplicates from Sorted Array45.1%Easy0.023645
844Backspace String Compare46.4%Easy0.023555
622Design Circular Queue43.8%Medium0.022460
981Time Based Key-Value Store53.1%Medium0.022260
152Maximum Product Subarray31.7%Medium0.022176
221Maximal Square37.7%Medium0.022108
112Path Sum41.2%Easy0.021701
300Longest Increasing Subsequence42.6%Medium0.020893
9Palindrome Number48.4%Easy0.018837
88Merge Sorted Array39.4%Easy0.018667
617Merge Two Binary Trees74.1%Easy0.018496
239Sliding Window Maximum43.0%Hard0.017685
50Pow(x;n)30.3%Medium0.017036
402Remove K Digits28.4%Medium0.016863
340Longest Substring with At Most K Distinct Characters44.1%Hard0.016122
217Contains Duplicate56.0%Easy0.015106
707Design Linked List24.5%Medium0.015054
102Binary Tree Level Order Traversal54.6%Medium0.014477
107Binary Tree Level Order Traversal II53.5%Easy0.014395
315Count of Smaller Numbers After Self41.5%Hard0.014352
44Wildcard Matching24.7%Hard0.013703
70Climbing Stairs47.8%Easy0.013494
122Best Time to Buy and Sell Stock II57.0%Easy0.013351
1047Remove All Adjacent Duplicates In String68.6%Easy0.013059
108Convert Sorted Array to Binary Search Tree57.9%Easy0.012453
287Find the Duplicate Number55.5%Medium0.012335
11Container With Most Water50.8%Medium0.012214
986Interval List Intersections67.3%Medium0.011969
119Pascal’s Triangle II49.0%Easy0.011894
210Course Schedule II40.7%Medium0.011869
264Ugly Number II42.0%Medium0.011604
117Populating Next Right Pointers in Each Node II39.1%Medium0.011389
819Most Common Word44.8%Easy0.010269
905Sort Array By Parity74.1%Easy0.009603
621Task Scheduler50.1%Medium0.009334
28Implement strStr()34.5%Easy0.008850
8String to Integer (atoi)15.4%Medium0.008513
153Find Minimum in Rotated Sorted Array45.1%Medium0.008430
977Squares of a Sorted Array72.1%Easy0.003891
67Add Binary45.2%Easy0.003735
140Word Break II32.6%Hard0.002707
1380Lucky Numbers in a Matrix71.5%Easy0
1410HTML Entity Parser54.0%Medium0

Leave a Reply