Skip to content

Commit

Permalink
1365
Browse files Browse the repository at this point in the history
  • Loading branch information
isinsuarici committed Feb 4, 2022
1 parent 9b0abd2 commit a449d06
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions E_1365_HowManyNumbersAreSmallerThantheCurrentNumber.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
public class Solution {
public int[] smallerNumbersThanCurrent(int[] nums) {
int[] sonuc= new int[nums.length];
for(int i=0; i nums.length; i++) {
int counter=0;
for(int j=0; jnums.length; j++){
if(nums[j]nums[i] && j!=i ) {
counter++;
sonuc[i]=counter;
}
}
} return sonuc;

}
}

0 comments on commit a449d06

Please sign in to comment.