更新 Solution.java
This commit is contained in:
@@ -98,16 +98,6 @@ public class Solution {
|
|||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
<<<<<<< HEAD
|
|
||||||
public static int removeElement(int[] nums, int val) {
|
|
||||||
for (int i = 0; i < nums.length; i++) {
|
|
||||||
if (val == nums[i]){
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return nums.length;
|
|
||||||
}
|
|
||||||
=======
|
|
||||||
// public static String longestCommonPrefix(String[] strs) {
|
// public static String longestCommonPrefix(String[] strs) {
|
||||||
// int index = 0;
|
// int index = 0;
|
||||||
// StringBuilder temp = new StringBuilder();
|
// StringBuilder temp = new StringBuilder();
|
||||||
@@ -158,6 +148,4 @@ public class Solution {
|
|||||||
}
|
}
|
||||||
return strs[0];
|
return strs[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
>>>>>>> a83429a6b794491f269fccaa74b710ca4abc514b
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user