Skip to content

Commit d0df77c

Browse files
edit 27
1 parent 7bb9ef1 commit d0df77c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ Your ideas/fixes/algorithms are more than welcome!
494494
|30|[Substring with Concatenation of All Words](https://leetcode.com/problems/substring-with-concatenation-of-all-words/)|[Solution](../master/src/main/java/com/fishercoder/solutions/SubstringwithConcatenationofAllWords.java)|O(n^2)|O(n)|Hard| HashMap
495495
|29|[Divide Two Integers](https://leetcode.com/problems/divide-two-integers/)|[Solution](../master/src/main/java/com/fishercoder/solutions/DivideTwoIntegers.java)|O(?)|O(?)|Medium|
496496
|28|[Implement strStr()](https://leetcode.com/problems/implement-strstr/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_28.java)|O(n)|O(1)|Easy| String
497-
|27|[Remove Element](https://leetcode.com/problems/remove-element/)|[Solution](../master/src/main/java/com/fishercoder/solutions/RemoveElement.java)|O(n)|O(1)| Easy |
497+
|27|[Remove Element](https://leetcode.com/problems/remove-element/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_27.java)|O(n)|O(1)| Easy |
498498
|26|[Remove Duplicates from Sorted Array](https://leetcode.com/problems/remove-duplicates-from-sorted-array/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_26.java)|O(n)|O(1)|Easy| Array
499499
|25|[Reverse Nodes in k-Group](https://leetcode.com/problems/reverse-nodes-in-k-group/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_25.java)|O(n)|O(1)| Hard | Recursion, LinkedList
500500
|24|[Swap Nodes in Pairs](https://leetcode.com/problems/swap-nodes-in-pairs/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_24.java)|O(n)|O(h)|Medium| Recursion, LinkedList

src/main/java/com/fishercoder/solutions/RemoveElement.java src/main/java/com/fishercoder/solutions/_27.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
Given input array nums = [3,2,2,3], val = 3
1313
1414
Your function should return length = 2, with the first two elements of nums being 2.*/
15-
public class RemoveElement {
15+
public class _27 {
1616
//then I looked at the Editorial solution, really neat!!! Super elegant and smart!
1717
public int removeElement_editorial_solution_1(int[] nums, int val){
1818
//use two pointers, increment j as long as its not equal to val, return i in the end
@@ -60,7 +60,7 @@ public int removeElement(int[] nums, int val) {
6060
}
6161

6262
public static void main(String...strings){
63-
RemoveElement test = new RemoveElement();
63+
_27 test = new _27();
6464
// int[] nums = new int[]{3,2,2,3};
6565
// int val = 3;
6666

0 commit comments

Comments
 (0)