Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. Implement the MinStack class: You must imp…
My memo and playground
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. Implement the MinStack class: You must imp…
Given a string path, which is an absolute path (starting with a slash ‘/’) to a file or directory in a Unix-style file system, con…
Given a string s containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[‘ and ‘]’, determine if the input s…
I was working on one of the projects from my work. That project is a CLI tool to run LoRA training and generation. If you have read the post below, th…
There are some spherical balloons taped onto a flat wall that represents the XY-plane. The balloons are represented as a 2D integer array points&…
You are given an array of non-overlapping intervals intervals where intervals[i] = [starti, endi] represent the start and the end …
Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the …
I was working on a project from my work. That project needs to add dependencies Pytorch 2.0.0 + CUDA 11.8. However, the dependencies are from https://…
Install NVIDIA driver Before we start, you need to install NVIDIA driver from here https://www.nvidia.com/download/index.aspx To check which CUDA vers…
Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence. You must write an algorithm that r…