Details
Joined devRant on 3/31/2018
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
-
I was today years old when I figured this.
Whoever named the app and designed the logo is an absolute fucking genius.10 -
"Java uninstalling itself Windows 7"
https://superuser.com/q/1492961/...
The garbage collector is working! :D3 -
Stop talking trash about developer tools!
Vim is FAST
Visual Studio is RESPONSIVE
Eclipse is EFFICIENT
IntelliJ IDEA is PERFORMANT
Android Studio
Xcode is POWERFUL26 -
My mom was kind of addicted to one of those fake news buzzfeed kind of online communities. She used to send me these posts like every day.
Spent about two months deliberately destroying each and every "scientific article" she sent me. It was a pseudo-scientific trash fake news kind of page and pretty much every article was just made up or had same kind of communities as a reference. I just googled the shit out of each and every topic.
She's unsubscribed now.
Feels good. I noticed that most of people of previous generations really need to be taught how to use google. Some of these communities are full-blown propaganda machines spreading things like anti-vaxx or similar.6 -
Woooo! Closed on a new home today, and it's ours. 2500 Sq ft, 4 bedrooms, huge farm kitchen. Five minute walk from a trailhead for a trail that runs along the shore of Lewisville Lake. Same commute to work. I'm happy.6
-
Accidentally hugged my boss. It's fine, I can't have more than 100 years left to carry this memory around anyways.26
-
(Interview for sde-3 position)
(continuation of https://devrant.com/rants/2132431/... )
Interviewer - *opens laptop. Gives a question.* solve this.
Me - *a bit surprised that such questions were being asked on a sde-3 level*
this is the 4th or 5th question from geeksforgeeks, isn't it? I know the answer to this. Do u still want me to solve it?
Interviewer - *not believing me* Yes
Me - okay. Well this *writing down the original solution mentioned on the site* is the verbatim code mentioned on the website, with complexity O(n^2).
However I feel this is not the optimal solution. Let me write a better solution.
*I provide a better solution*
This has a complexity of O(n log n) . What do you think?
Interviewer - Nope. This could be a lot better.
Me - okay. Let me see. Did some minor changes, added some caching (obviously this will have no effect on the base algorithm) etc
How about now?
Interviewer - nope. Still not good.
Me - okay. Can you tell me how to improve it?
Interviewer - no we are not allowed to solve problems for you. It is not our interview, it is yours.
Me - that makes no sense. Interviews are a two way street. I'd very much like to know the optimal answer to this.
Interviewer - okay
*copies down the answer from geeksforgeeks*
This is good
Me - *at first I thought this was a prank or something. *
I just mentioned this answer here.
Then I spent the next 10 minutes providing a BETTER solution.
May I know how yours is better?
Interviewer - this solution has 2-3 loops. Yours has a function calling itself.
Me - that's called divide and conquer using recursion mf!
Anyways let's take an example and do a dry run.
Interviewer - okay
*we do dry run*
Interviewer - oh yes. Yours ran faster. But it will run fast only sometimes.
Me - yes. Each time the algorithm rolls a dice to decide if it should run fast or slow. You have one goddamn awesome weed dealer man.
I got to go. Thank you for meeting me.14