My MBA manager has written a crappy algorithm and wants me to implement it .the algorithm has 8 different variables maintaining states and I am not able to understand it completely (he thinks it's a 2 day job to implement it ) .how do I handle this situation
Optimize it and show him the performance diff and risks of his shitty design
When you say algorithm, do you actually mean business requirements? If so, ask questions. If it’s a poorly written algorithm, do the same thing so you can understand the problem. Once you understand the problem, solve it the way you deem best.
Nope it's an algorithm
There are more than 1 dumb persons here!
Lol, I agree
Can you please elaborate on ur reason .
Lllllllllllllllllllllleeetcode it
Get an intern and pass it on.
Good idea , want to do this , but can't
Ok. Then get a mba from a better place and come back as his manager and hand the algo back to him to implement.
This is a great algo boss, and if you give me 2 weeks I can get it to be ready for prime time. Rewrite the whole thing in week 1 and go back to tell your boss you have worked really hard to complete it way before the deadline.
If he is the type who can appreciate other people's ideas, the best way is to show him the consequences of his actions: 1) write the code, 2) take your time to write it, 3) show him how slow it runs, 4) pitch your idea when he sees what's wrong. If the boss is a stuck up arrogant prick, take him for a spin for 3 months while you find a new job.
I said all sorts of things in rage .he was just very enthusiastic about writing an algorithm , so he tried to design it . however , my persistence paid off , he agreed that in his methodology the code will become complex and bug prone .so he allowed me to implement it my way , although in the end he said mine is a brute Force way of doing things (I didn't reply :) .
Cars
Yesterday
1343
Cyber truck killer: Chinese version of EV truck
India
6h
2067
Why is it so G*damn difficult to move money out of India
India
Yesterday
783
Any Indians Think Kashmir Should be Independent?
India
Yesterday
388
Top 5 Indian kings you respect
Tech Industry
Yesterday
2564
I do tech screens at Google. AMA
What does the algorithm do ?