Saisankar GochhayatDealing 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
Saisankar GochhayatFind the intersection of two lists in Python with Duplicates.Oct 31, 2020Oct 31, 2020
Saisankar GochhayatLeetcode 34This is an interesting problem involving Binary search. Here is the link to the problem —…Mar 14, 2020Mar 14, 2020
Saisankar GochhayatLet'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
Saisankar GochhayatLeetcode 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
Saisankar GochhayatChanging 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