From a prompt, to a working native Android app, and to a Google Play Console test track, all while in a browser! ๐คฏ Native Android development is now supported in Google AI Studio!
Learn more and try it out today โ https://t.co/pMB7nTa1dO
Day 22 of #100DaysOfCode
Solved the Inversion Count problem ๐
Brute Force โ O(nยฒ) โ
Optimized โ Merge Sort (O(n log n)) โ
Counted inversions while merging โ Clean & efficient! โก
#CPP#DSA#ProblemSolving#gfg160daysofcoding
Day 21 of #100DaysOfCode ๐
Solved the H-Index Problem ๐
๐น Approach: Sort in descending order
๐น Check max h such that citations[i] >= i+1
๐น Clean O(n log n) solution โ
#CPP#DSA#ProblemSolving#gfg160daysofcoding
Day 20 of #100DaysOfCode
Solved the classic Dutch National Flag Problem ๐ฏ
Array with only {0,1,2}?
Instead of sorting โ use 3 pointers (low, mid, high) ๐ One-pass, O(n), O(1) space โก
#CPP#DSA#ProblemSolving#gfg160daysofcoding