You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Problem Statement: Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.
3
+
4
+
//Solution:
5
+
classSolution {
6
+
public:
7
+
voidmoveZeroes(vector<int>& nums) {
8
+
int i = 0;
9
+
for (int j = 0; j < nums.size(); j++) {
10
+
// Bring all non zero numbers to the start of the array
@@ -373,8 +374,10 @@ Check out ---> [Sample PR](https://github.com/codedecks-in/LeetCode-Solutions/pu
373
374
| 947 |[Most Stones Removed with Same Row or Column](https://leetcode.com/problems/most-stones-removed-with-same-row-or-column/)|[C++](./C++/Most-Stones-Removed-with-Same-Row-or-Column.cpp)|_O(V)_|_O(2V)_| Medium | Graph | Union Find ||[C++](./C++/Most-Stones-Removed-with-Same-Row-or-Column.cpp)|_O(V)_|_O(2V)_| Medium | Graph | Union Find |
|[Yuri Spiridonov](https://github.com/YuriSpiridonov) <br> <imgsrc="https://github.com/YuriSpiridonov.png"width="100"height="100"> | Russia | Python |[Twitter](https://twitter.com/YuriSpiridonov)<br>[Leetcode](https://leetcode.com/yurispiridonov/)<br>[Hackerrank](https://www.hackerrank.com/YuriSpiridonov)|
420
-
|[Naveen Kashyap](https://github.com/naveenkash) <br> <imgsrc="https://github.com/naveenkash.png"width="100"height="100"> | India | Javascript |[Twitter](https://twitter.com/naveen_kashyapp)<br>[Leetcode](https://leetcode.com/naveenkash/)|
421
-
|[Rudra Mishra](https://github.com/Rudra407) <br> <imgsrc="https://github.com/Rudra407.png"width="100"height="100"> | India | C++ |[Twitter](https://twitter.com/ruDra_Mishra407)<br>[Leetcode](https://leetcode.com/rudramishra/)|
422
-
|[Sachin Singh Negi](https://github.com/sachinnegi) <br> <imgsrc="https://github.com/sachinnegi.png"width="100"height="100"> | India | Python |[Twitter](https://twitter.com/SachinSinghNe17)<br>[Leetcode](https://leetcode.com/negisachin688/)<br>[Hackerrrak](https://www.hackerrank.com/negisachin688)|
|[Avinash Trivedi](https://github.com/trivediavinash) <br> <imgsrc="https://github.com/trivediavinash.png"width="100"height="100"> | India | C++ |[Leetcode](https://leetcode.com/avi_002/)|
427
-
|[Ishika Goel](https://github.com/ishikagoel5628) <br> <imgsrc="https://github.com/Nour-Grati.png"width="100"height="100"> | India | C++ |[Leetcode](https://leetcode.com/ishikagoel5628/)|
428
-
|[Fenil Dobariya](https://github.com/ifenil) <br> <imgsrc="https://rb.gy/iascx3"width="100"height="100"> | India | Java |[Github](https://github.com/ifenil)|
429
-
|[Prashansa Tanwar](https://github.com/prashansatanwar) <br> <imgsrc="https://github.com/prashansatanwar.png"width="100"height="100"> | India | C++ |[Leetcode](https://leetcode.com/prashansaaa/)|
430
-
|[Ishu Raj](https://github.com/ir2010) <br> <imgsrc="https://github.com/ir2010.png"width="100"height="100"> | India | C++ |[Leetcode](https://leetcode.com/ishuraj2010/)|
431
-
|[Rakesh Bhadhavath](https://github.com/Revenge-Rakesh) <br> <imgsrc="https://avatars2.githubusercontent.com/u/36032275?v=4"width="100"height="100"> | India | Java |[Leetcode](https://leetcode.com/goal_cracker/)|
432
-
|[Tarun Singh](https://github.com/TarunSingh56) <br> <imgsrc="https://avatars3.githubusercontent.com/u/25122604?s=400&u=d01f190e9a8c3790d408c38387c68b6bc9db2ea6&v=4"width="100"height="100"> | India | C++ |[Leetcode](https://leetcode.com/_tarun/)|
433
-
|[Hardik Gupta](https://github.com/harrdy272) <br> <imgsrc="https://avatars3.githubusercontent.com/u/42604986?s=460&u=609a0839312a620d3d658ef19e8eac1e226a6eb4&v=4"width="100"height="100"> | India | C++ |[codeforces](https://codeforces.com/profile/harrdy272) <br>[codechef](https://www.codechef.com/users/hardikg272) <br> [Hackerrank](https://www.hackerrank.com/hardikg272) <br> [LeetCode](https://leetcode.com/hardikg272/)|
434
-
|[Jaseem ck](https://github.com/Jaseemck) <br> <imgsrc="https://github.com/Optider.png"width="100"height="100"> | India | Python |[Github](https://github.com/Jaseemck)|
435
-
|[Ilias Khan](https://github.com/IliasKhan) <br> <imgsrc="https://avatars3.githubusercontent.com/u/26863936?s=460&u=4501ffba5efd1a7b978416e8e434dff599c85384&v=4"width="100"height="100"> | India | C++ |[codechef](https://www.codechef.com/users/iliaskhan) <br> [Hackerrank](ckerrank.com/iliaskhan57) <br> [LeetCode](https://leetcode.com/ilias_khan/) <br> [codeforces](http://codeforces.com/profile/iliaskhan)|
436
-
|[Shamoyeeta Saha](https://github.com/Shamoyeeta) <br> <imgsrc="https://i.pinimg.com/236x/dc/ef/3a/dcef3abedf0e0761203aaeb85886a6f3--jedi-knight-open-source.jpg"width="100"height="100"> | India | C++ |[Hackerrank](https://www.hackerrank.com/sahashamoyeeta) <br> [Github](https://github.com/Shamoyeeta)|
437
-
|[James Y](https://github.com/jameszu) <br> <imgsrc="https://avatars0.githubusercontent.com/u/41566813?s=400&u=af77d15517566ea590a316030b4a6d402b0041b6&v=4"width="100"height="100"> | New Zealand | python |[Github](https://github.com/jameszu)|
438
-
|[Hamza B](https://github.com/9Hamza) <br> <imgsrc="https://avatars2.githubusercontent.com/u/56516922?s=400&u=2c1adeef0194a2859361d464f28783bfba698638&v=4"width="100"height="100"> | Saudi Arabia | Java |[Github](https://github.com/9Hamza)|
|[Yuri Spiridonov](https://github.com/YuriSpiridonov) <br> <imgsrc="https://github.com/YuriSpiridonov.png"width="100"height="100"> | Russia | Python |[Twitter](https://twitter.com/YuriSpiridonov)<br>[Leetcode](https://leetcode.com/yurispiridonov/)<br>[Hackerrank](https://www.hackerrank.com/YuriSpiridonov)|
423
+
|[Naveen Kashyap](https://github.com/naveenkash) <br> <imgsrc="https://github.com/naveenkash.png"width="100"height="100"> | India | Javascript |[Twitter](https://twitter.com/naveen_kashyapp)<br>[Leetcode](https://leetcode.com/naveenkash/)|
424
+
|[Rudra Mishra](https://github.com/Rudra407) <br> <imgsrc="https://github.com/Rudra407.png"width="100"height="100"> | India | C++ |[Twitter](https://twitter.com/ruDra_Mishra407)<br>[Leetcode](https://leetcode.com/rudramishra/)|
425
+
|[Sachin Singh Negi](https://github.com/sachinnegi) <br> <imgsrc="https://github.com/sachinnegi.png"width="100"height="100"> | India | Python |[Twitter](https://twitter.com/SachinSinghNe17)<br>[Leetcode](https://leetcode.com/negisachin688/)<br>[Hackerrrak](https://www.hackerrank.com/negisachin688)|
|[Avinash Trivedi](https://github.com/trivediavinash) <br> <imgsrc="https://github.com/trivediavinash.png"width="100"height="100"> | India | C++ |[Leetcode](https://leetcode.com/avi_002/)|
430
+
|[Ishika Goel](https://github.com/ishikagoel5628) <br> <imgsrc="https://github.com/Nour-Grati.png"width="100"height="100"> | India | C++ |[Leetcode](https://leetcode.com/ishikagoel5628/)|
431
+
|[Fenil Dobariya](https://github.com/ifenil) <br> <imgsrc="https://rb.gy/iascx3"width="100"height="100"> | India | Java |[Github](https://github.com/ifenil)|
432
+
|[Prashansa Tanwar](https://github.com/prashansatanwar) <br> <imgsrc="https://github.com/prashansatanwar.png"width="100"height="100"> | India | C++ |[Leetcode](https://leetcode.com/prashansaaa/)|
433
+
|[Ishu Raj](https://github.com/ir2010) <br> <imgsrc="https://github.com/ir2010.png"width="100"height="100"> | India | C++ |[Leetcode](https://leetcode.com/ishuraj2010/)|
434
+
|[Rakesh Bhadhavath](https://github.com/Revenge-Rakesh) <br> <imgsrc="https://avatars2.githubusercontent.com/u/36032275?v=4"width="100"height="100"> | India | Java |[Leetcode](https://leetcode.com/goal_cracker/)|
435
+
|[Tarun Singh](https://github.com/TarunSingh56) <br> <imgsrc="https://avatars3.githubusercontent.com/u/25122604?s=400&u=d01f190e9a8c3790d408c38387c68b6bc9db2ea6&v=4"width="100"height="100"> | India | C++ |[Leetcode](https://leetcode.com/_tarun/)|
436
+
|[Hardik Gupta](https://github.com/harrdy272) <br> <imgsrc="https://avatars3.githubusercontent.com/u/42604986?s=460&u=609a0839312a620d3d658ef19e8eac1e226a6eb4&v=4"width="100"height="100"> | India | C++ |[codeforces](https://codeforces.com/profile/harrdy272) <br>[codechef](https://www.codechef.com/users/hardikg272) <br> [Hackerrank](https://www.hackerrank.com/hardikg272) <br> [LeetCode](https://leetcode.com/hardikg272/)|
437
+
|[Jaseem ck](https://github.com/Jaseemck) <br> <imgsrc="https://github.com/Optider.png"width="100"height="100"> | India | Python |[Github](https://github.com/Jaseemck)|
438
+
|[Ilias Khan](https://github.com/IliasKhan) <br> <imgsrc="https://avatars3.githubusercontent.com/u/26863936?s=460&u=4501ffba5efd1a7b978416e8e434dff599c85384&v=4"width="100"height="100"> | India | C++ |[codechef](https://www.codechef.com/users/iliaskhan) <br> [Hackerrank](ckerrank.com/iliaskhan57) <br> [LeetCode](https://leetcode.com/ilias_khan/) <br> [codeforces](http://codeforces.com/profile/iliaskhan)|
439
+
|[Shamoyeeta Saha](https://github.com/Shamoyeeta) <br> <imgsrc="https://i.pinimg.com/236x/dc/ef/3a/dcef3abedf0e0761203aaeb85886a6f3--jedi-knight-open-source.jpg"width="100"height="100"> | India | C++ |[Hackerrank](https://www.hackerrank.com/sahashamoyeeta) <br> [Github](https://github.com/Shamoyeeta)|
440
+
|[James Y](https://github.com/jameszu) <br> <imgsrc="https://avatars0.githubusercontent.com/u/41566813?s=400&u=af77d15517566ea590a316030b4a6d402b0041b6&v=4"width="100"height="100"> | New Zealand | python |[Github](https://github.com/jameszu)|
441
+
|[Hamza B](https://github.com/9Hamza) <br> <imgsrc="https://avatars2.githubusercontent.com/u/56516922?s=400&u=2c1adeef0194a2859361d464f28783bfba698638&v=4"width="100"height="100"> | Saudi Arabia | Java |[Github](https://github.com/9Hamza)|
0 commit comments