Exactly my point -- two weeks of leetcode do not significantly affect the candidate's ability to perform the job, but it has immense influence on how well s/he'll do in the interview
1. If you're not a good programmer even with leetcode practice you can't get good 2. If you're a good programmer with leetcode practice you eliminate anxiety and are able to perform optimally according to your programming skills
Thus, it is definitely semi annoying that you need to "prep" for interviews with leetcode, its not the absolute worst thing in the world. Software engineers in the US tend to routinely forget how good they have basically everything compared to every other profession / nation out there.
This is also coming from and Indian dude currently back in India after a decade of being in the States. I think a 60 day window is perfectly acceptable (not great but not terrible either) for immigrant workers. I'm still glad for the opportunity this gives people. You're supposed to be a smart cookie anyways right? Didn't you know these terms when you started? Perhaps you should have made sure you had an exit plan. It's definitely on you if you come on a h1b and instantly proceed to buy a mansion that you can't sell off and leave nation if needed. Also, people blame their kids for not wanting to move them back to their original countries - I feel like the kids will be alright. It's probably the adults who will despise going back to a "lesser" lifestyle or something.
Leetcode is solving small problems, often with tricks, in a very short period of time. Being a software engineer is solving large problems over large periods of time.
In the past 2 years I've done about 40ish+ interviews at all the big tech co's + smaller-midsize startups and aside from 3 or 4 take home assignments I was given, _every_ interview was leetcode style, to the point where I would just start noting which exact leetcode questions I was asked when friends asked about my experience. The only exception would be 1 or 2 "system design" rounds out of the 5/6 on-site interviews if the company was calibrating me for senior level.
Huh? OP wasn't a rando who just 'studied' for a few weeks and passed. He has been working in Tech for 7+ years [1].
If anything the moral of this story is it doesn't matter that you have a 7 year experience, you still have to do fucking Leetcode for 2 months if you want to get a new job.
[1] https://www.linkedin.com/in/bharathpbhat/