Nội dung text LeetCode solutions in Java.pdf
Coding Interview in Java Program Creek May 1st, 2016 1 of 246 1 of 288
Contents 1 Rotate Array in Java 13 2 Evaluate Reverse Polish Notation 17 3 Isomorphic Strings 21 4 Word Ladder 23 5 Word Ladder II 25 6 Median of Two Sorted Arrays 29 7 Kth Largest Element in an Array 31 8 Wildcard Matching 33 9 Regular Expression Matching in Java 35 10 Merge Intervals 39 11 Insert Interval 41 12 Two Sum 43 13 Two Sum II Input array is sorted 45 14 Two Sum III Data structure design 47 15 3Sum 49 16 4Sum 53 17 3Sum Closest 55 18 String to Integer (atoi) 57 19 Merge Sorted Array 59 20 Valid Parentheses 61 2 | 531 2 of 246 2 of 288