Dealing with mutable arguments in Unit TestsIf you pass a mutable argument and then try to unittest it with .assert_called_with(), you might run into problems. This issue can be…Mar 16, 2023Mar 16, 2023
Leetcode 34This is an interesting problem involving Binary search. Here is the link to the problem —…Mar 14, 2020Mar 14, 2020
Let's talk about Union Find.Union Find is a very interesting data-structure that makes a lot of graph problems easy to solve.Feb 28, 2020Feb 28, 2020
Leetcode 934 Shortest BridgeHere is one of the solutions I understood, I am putting it here for future reference. I have added comments to make it easier to…Oct 10, 2019Oct 10, 2019
Changing the swap size on Ubuntu 18.04.So one fine evening I find my budget laptop freezing up due to Chrome hogging up all the memory. Upon checking my RAM usage I figured that…Nov 28, 2018Nov 28, 2018