File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change 7
7
| 7 | [ Reverse Integer] ( https://leetcode.com/problems/reverse-integer/ ) | Easy | [ ![ Java] ( https://img.icons8.com/color/40/000000/java-coffee-cup-logo.png )] ( https://github.com/anishLearnsToCode/leetcode-algorithms/blob/master/src/ReverseInteger.java ) |
8
8
| 9 | [ PalindromeNumber] ( https://leetcode.com/problems/palindrome-number/ ) | Easy | [ ![ Java] ( https://img.icons8.com/color/40/000000/java-coffee-cup-logo.png )] ( https://github.com/anishLearnsToCode/leetcode-algorithms/blob/master/src/PalindromeNumber.java ) |
9
9
| 13 | [ Roman To Integer] ( https://leetcode.com/problems/roman-to-integer/ ) | Easy | [ ![ Java] ( https://img.icons8.com/color/40/000000/java-coffee-cup-logo.png )] ( https://github.com/anishLearnsToCode/leetcode-algorithms/blob/master/src/RomanToInteger.java ) |
10
- | 14 | [ Longest Common Prefix] ( https://leetcode.com/problems/longest-common-prefix/ ) | Easy | |
10
+ | 14 | [ Longest Common Prefix] ( https://leetcode.com/problems/longest-common-prefix/ ) | Easy | [ ![ Java ] ( https://img.icons8.com/color/40/000000/java-coffee-cup-logo.png )] ( https://github.com/anishLearnsToCode/leetcode-algorithms/blob/master/src/LongestCommonPrefix.java ) |
11
11
| 2 | [ ] ( ) | Easy | |
12
12
| 2 | [ ] ( ) | Easy | |
13
13
| 2 | [ ] ( ) | Easy | |
Original file line number Diff line number Diff line change 1
1
// https://leetcode.com/problems/longest-common-prefix/
2
2
3
3
public class LongestCommonPrefix {
4
- public static void main (String [] args ) {
5
-
6
- }
7
-
8
4
public String longestCommonPrefix (String [] array ) {
9
5
if (array .length == 0 ) {
10
6
return "" ;
You can’t perform that action at this time.
0 commit comments