Leetcode in Java && Oracle
422 subscribers
8 photos
397 files
400 links
Second channel: @codeforces_java

Let's Develop Together!
Download Telegram
image_2022-02-26_13-01-47.png
33 KB
#medium

#N739. Daily Temperatures
problem link

#solution
        int[] res=new int[temp.length];
for(int i=0; i<temp.length-1; i++){
for(int j=i+1; j<temp.length; j++){
if(temp[i]<temp[j]){
res[i]=j-i;
break;
}
}
}
return res;
🤩1