100 articles  ·  page 7 of 23

Debugging Node.js Performance: Heat Maps and Memory Leaks in Production

When running a horizontally scaled Node.js application in production, identifying the root cause of performanc…

Construct the Smallest Number

Developers flex on each with the strangest of ways. How green is your github commit history. Have you submitte…

Generating Subsets using Backtracking

1863. Sum of All Subset XOR TotalsThis is a good problem to grasp basics of backtracking The XOR total of an a…

k largest elements

Given an array arr[] of positive integers and an integer k, Your task is to return k large…

1079. Letter Tile Possibilities

You have n  tiles, where each tile has one letter tiles[i] printed on it. Return&nbsp…

LeetCode 1718. Construct the Lexicographically Largest Valid Sequence

Solution is a greedy recursion. Iterate in reverse order to make sure to get the largest solution first. funct…

List of Open Source C++ Games

Yeah, there are plenty of open-source C++ games that run on Linux and can help you learn game development. Her…

3174. Clear Digits

You are given a string s. Your task is to remove all digits by doing this operation repeatedly: Delete the fir…

in order traversal

this was the geeks for geeks problem of the day today /* A Binary Tree node class Node { int data; Node left, …

Find the Number of Distinct Colors Among the Balls

You are given an integer limit and a 2D array queries of size n x 2. There are l…

Tuple with Same Product

Given an array nums of distinct positive integers, return the number of tuples (…

1790. Check if One String Swap Can Make Strings Equal

You are given two strings s1 and s2 of equal length. A string swap is an operati…