Given a string s containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[‘ and ‘]’, determine if the input s…
My memo and playground
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…
Given an integer array nums and an integer k, return true if there are two distinct indices i and j …
Write an algorithm to determine if a number n is happy. A happy number is a number defined by the following process: Return t…