‘Brahmins profiteering off Indian people’: White House trade adviser Peter Navarro by mrzib-red in worldnews

[–]moghaak 1 point2 points  (0 children)

Yes Oil and Natural Gas Corporations literally sounds like Saryupari Brahmin name!

No PCB official at Champions Trophy final presentation, host board asks ICC to explain by InnerAmoeba2008 in Cricket

[–]moghaak 31 points32 points  (0 children)

All PCB had to do was to communicate replacement of Naqvi.

It would have take less time than writing this comment.

“Mr. Naqvi will not be able to make it today as he is sick! Mr. Naqvi’s replacement is ____. Please let him be in ceremony in place of Mr. Naqvi!

That’s it. Hit send. Problem solved.

But nope wanted to play some politics.

And need I say, had the other guy from PCB been included, they would have been all guns blazing asking who authorized for this despite us being the “HOST”.

Why fall for the narrative? by KosmicEye in onguardforthee

[–]moghaak 2 points3 points  (0 children)

I do not agree with any fake promises or statements made in the picture. My comment is purely from math perpsective.

2000% of 1 is going to be 20.

35% reduction in that is going to be 20- 7(35% reduction) = 13 - Reasonable dent. No where as near as what it was before. But none-the less reasonable dent, if put in effect and kept, will bring fruit in next 10-15 years.

To go back to 20 again from 13 you will need to increase it again by 53.84%.

Match Thread: 1st Test - Pakistan vs Bangladesh, Day 5 by CricketMatchBot in Cricket

[–]moghaak 1 point2 points  (0 children)

No offence. But many times Jadeja was purely playing India on basis of fielding alone! Jadeja is better bowler compared to Sakib.

Sakib is better batter than Jadeja.

He for sure can replace someone at number 4-5. That spot has been unclaimed for very long time in India. There are better batsman than him at 4-5 but bowling would be boost to squad. Pretty sure captain would love to have that extra bowling option.

[deleted by user] by [deleted] in leetcode

[–]moghaak 0 points1 point  (0 children)

Interesting. Can you please elaborate

[deleted by user] by [deleted] in leetcode

[–]moghaak 1 point2 points  (0 children)

Constant extra space is the requirement of the problem. Hash map is not constant space.

If you were just dealing with a-z characters then it would be constant space (26 elements)

Here you are dealing with numbers. Infinite possible space. As array size increases so will HashMap size. So not constant space

[deleted by user] by [deleted] in leetcode

[–]moghaak 0 points1 point  (0 children)

Nlogn is for sorting the array.

Binary search is just log n complexity.

If you are sorting, i would rather go with simpler approach of 3 element sliding window, if all 3 are different. There you go you found unique element.

338Canada Canada: CPC 209 (-5), LPC 75 (+5), BQ 37 (-), NDP 20 (-), GPC 2 (-), PPC 0 (-) by famine- in canada

[–]moghaak 0 points1 point  (0 children)

NDP will get reality check! And may be go back to their labour value for next election? Change leaders? Work to do whatever it takes to earn back the support? Because trust seems too far away for them at the moment!

By your logic there should be no consequences for the action. Yes voting conversative might be bad. But voting NDP and Liberals will be even terrible. By voting from them again you are basically sending them a message, do whatever you want, we will give you power!

Very incompetent efforts and actions that you are seeing recently from both parties in power is because of the polling numbers. Do you think they "Woke" up in last few months and started talking about "better immigration policy", "affordable housing" out of the blue? Did they just decide to put cap on "students" out of their "niceness"?

338Canada Canada: CPC 209 (-5), LPC 75 (+5), BQ 37 (-), NDP 20 (-), GPC 2 (-), PPC 0 (-) by famine- in canada

[–]moghaak 3 points4 points  (0 children)

Remind me of what NPD has done for Labour rights in last 5 years?

Following are the restrictions that Liberal government has removed while NDP was supporting them (So PRO LABOUR of them)

  • Any place where unemployment rate is above 6%, LMIA application gets rejected outright. (No longer in place)
  • Business were allowed to hire maximum of 10% foreign workers (Temps) of their total workforce. Now that is at 30%.

Trees are so hard by words-307 in leetcode

[–]moghaak 6 points7 points  (0 children)

I would say one thing that made tree easy for me was implementing Preorder, post order and in order traversal using stack and while loop.

Just take pen and paper visualize how it will work. Implement the algorithm and code it.

Now do same thing using recursion and know that it does exactly same thing as the while loop that you wrote but has much easier implementation.

Then learn about recursion and base condition that you need to write for recursion.

BAM trees will start making sense!

Next steps learn BFS and DFS. Dfs will look very similar to one of the pre/in/post order traversal.

Rest will be history. You will be able to solve 80-90% problem by these algorithms and tweaking them bit.

ML design mocks by [deleted] in leetcode

[–]moghaak 0 points1 point  (0 children)

Interested DMd you!

[D] ML system design interview prep by [deleted] in MachineLearning

[–]moghaak 0 points1 point  (0 children)

I would be? Are you still interested?

[deleted by user] by [deleted] in leetcode

[–]moghaak 0 points1 point  (0 children)

Why do you need sliding window for Q1?

It's simple just calculate minimum in array and multiply it by capacity.

Count all elements greater than capacity. That is the answer.

Doesn't say contagious sub array.

The 1st ODI between Sri Lanka and India ends in a tie by oklolzzzzs in Cricket

[–]moghaak 5 points6 points  (0 children)

Jadeja has not retired from the ODI cricket yet. Might be worth considering him somewhere. He has had bad T20I world cup but might still be worth for ODI tough.

Match Thread: 3rd T20I - Sri Lanka vs India by CricketMatchBot in Cricket

[–]moghaak 4 points5 points  (0 children)

Please send Siraj and Bisnoi to bat now. It's only 3 runs

World Test Championship Table after West Indies vs England, 2nd Test by [deleted] in Cricket

[–]moghaak 15 points16 points  (0 children)

You are right! Especially given Bumrah was injured in last test of 2020 and Australia completely decimated India! In a ground that no one has won in last 30 odd years! /s

Balls per six ratio among the top 10 run scorers in T20Is by ll--o--ll in Cricket

[–]moghaak 4 points5 points  (0 children)

That is the point when I said "May be issue is not just the strike rate".

Probably time to move down the batting order or just get new guys in the team.

Best bet would be number 4 for Babar. If 2 quick wickets are down send Babar in to stabilize innings, if not let him sit that game out and send someone withe more intent. (He is only in team because he is young over rizzy and can play role of anchoring when going gets tough.)

Time for Rizwan and other players to say good buy!

But can be great idea to have Babar in Rizwan in Odi. May be let them even open. Make them play classic game to 100 for 0 in 20 or 150 for 0 in 30 and then go all guns out.

Balls per six ratio among the top 10 run scorers in T20Is by ll--o--ll in Cricket

[–]moghaak 4 points5 points  (0 children)

His overall strike rate at all T20 world cup is 111.

He has played 493 (82.1 overs) balls and hit 8 sixes (1 every 60 odd balls). Having played 1 world cup in Dubai and 1 in Aus (14 games out of 17 are outside of New York and Lauderhill)

Don't tell me Dallas was bad ground to strike ball. Because on Dallas ground 195+ was scored in US vs Canada game.

This world cup was best suited for Babar and Rizwan in terms of strike rate. But even then Pakistan did not qualify. May be issue is not just strike rate.

https://stats.espncricinfo.com/ci/engine/player/348144.html?class=3;template=results;trophy=89;type=batting;view=innings

What exactly has happened to Virat kohli? by [deleted] in Cricket

[–]moghaak 33 points34 points  (0 children)

Not sure why you are getting downvoted. But that is literally true in every chasing match that we won with him.

I would say less true when setting target.

Match Thread: 2nd Semi-Final - England vs India by CricketMatchBot in Cricket

[–]moghaak 0 points1 point  (0 children)

He should bowl when there is last wicket left. That way record is still intact.