I'm thinking to shifting from C++ to #Kotlin gradually for DSA .
While C++ is good & I personally believe nothing beats the C++ STL for pure algorithmic speed and ease .
but kotlin is my main tech stack & I want my problem solving to reflect the tools I use for development .
I think I should practice like this , by putting a #Notepad window over the #LeetCode editor . This might me get used to typing for interviews , as many companies require you to write code in Notepad or Word or something else without any help .
i used cout statements to manually track my mistakes . It helped me observe that I was including the '.' character in the email name which I was not supposed to do . and i fixed that , it worked .
I never thought of this before ....
can we use this trick in actual interviews ?
@MohitLearning When I did my first blood donation in college , they said anyone who donated would have their attendance marked for that lecture . So I did it , but they never marked the attendance ๐คฅ.
I first attempted this in a #LeetCodeContest but could not solve it . After 6 failed submissions , it sticked with me . today I suddenly felt like trying it again , and after using all three hints , I finally solved the second most frustrating #LeetCode problem of my life
the topics showed it requires stack / monotonic stack but i couldn't figure it how????? so used vector for faster traversing instead of rechecking approach