Ever wished for a simple, clean way to monitor your GPU usage without diving into terminal commands or heavy dashboards? I recently built a tiny GPU monitoring web app that does exactly that—lightweight, easy to deploy, and super useful if you’re running GPU workloads. A screenshot of the UI: 🛠 Details of the app This…
When a function is called, it gets it’s own stack to store the parameters, and it’s local variables. So, an implementation of recursive function that stores a local variable and waits for the values returned from another recursive call to the function and so on would require stack to store the results. Let’s see an…
First, let’s define what a maximum subsequence sum problem is. Suppose we have an array [5, -3, 4, -7, 8, 7, 4, -1] then we would want to find a contiguous sequence that has the maximum sum. In this case, subsequence [8, 7, 4] has the maximum sum i.e. 19. It’s worth noting that if…