Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit70f44ca

Browse files
format
1 parent456a7b8 commit70f44ca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ Your ideas/fixes/algorithms are more than welcome!
308308
|286|[Walls and Gates](https://leetcode.com/problems/walls-and-gates/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_286.java)| O(m*n)|O(g) | Medium| BFS
309309
|285|[Inorder Successor In BST](https://leetcode.com/problems/inorder-successor-in-bst/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_285.java)| O(h)|O(1) | Medium| Tree
310310
|284|[Peeking Iterator](https://leetcode.com/problems/peeking-iterator/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_284.java)| O(n)|O(n) | Medium| Design
311-
|283|[Move Zeroes](https://leetcode.com/problems/move-zeroes/)|[Solution](../master/src/main/java/com/fishercoder/solutions/MoveZeroes.java)| O(n)|O(1)| Easy|
311+
|283|[Move Zeroes](https://leetcode.com/problems/move-zeroes/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_283.java)| O(n)|O(1)| Easy|
312312
|282|[Expression Add Operators](https://leetcode.com/problems/expression-add-operators/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_282.java)| O(?)|O(?)| Hard|
313313
|281|[Zigzag Iterator](https://leetcode.com/problems/zigzag-iterator/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_281.java)| O(n)|O(n)| Medium|
314314
|280|[Wiggle Sort](https://leetcode.com/problems/wiggle-sort/)|[Solution](../master/src/main/java/com/fishercoder/solutions/_280.java)| O(n)|O(1)| Medium|

‎src/main/java/com/fishercoder/solutions/MoveZeroes.javarenamed to‎src/main/java/com/fishercoder/solutions/_283.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
Note:
1111
You must do this in-place without making a copy of the array.
1212
Minimize the total number of operations.*/
13-
publicclassMoveZeroes {
13+
publicclass_283 {
1414
publicvoidmoveZeroes_Editorial_solution2(int[]nums){
1515
//this solutoin is the most optimal since it minimizes the number of operations
1616
//the idea is to swap the non-zero element to the first zero number position
@@ -74,7 +74,7 @@ public void moveZeroes_1st_attempt(int[] nums) {
7474
}
7575

7676
publicstaticvoidmain(String...strings){
77-
MoveZeroestest =newMoveZeroes();
77+
_283test =new_283();
7878
int[]nums =newint[]{0,1,0,3,12};
7979
test.moveZeroes_Editorial_solution2(nums);
8080
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp