diff --git a/E_1365_HowManyNumbersAreSmallerThantheCurrentNumber.java b/E_1365_HowManyNumbersAreSmallerThantheCurrentNumber.java new file mode 100644 index 0000000..1e3ed8b --- /dev/null +++ b/E_1365_HowManyNumbersAreSmallerThantheCurrentNumber.java @@ -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; + + } +} \ No newline at end of file