Author name: Admin

Remaining String

gfg-potd

Given a string s without spaces, a character ch and an integer count. Your task is to return the substring that remains after the character ch has appeared count number

2196. Create Binary Tree From Descriptions

leetcode-potd

You are given a 2D integer array descriptions where descriptions[i] = [parenti, childi, isLefti] indicates that parenti is the parent of childi in a binary tree of unique values. Furthermore, If isLefti == 1, then childi is

Smallest number

gfg-potd

Given two integers s and d. The task is to find the smallest number such that the sum of its digits is s and the

726. Number of Atoms

leetcode-potd

Given a string formula representing a chemical formula, return the count of each atom. The atomic element always starts with an uppercase character,

Segregate 0s and 1s

gfg-potd

Given an array arr consisting of only 0‘s and 1‘s in random order. Modify the array in-place to segregate 0s onto the left side and 1s

2751. Robot Collisions

leetcode-potd

There are n 1-indexed robots, each having a position on a line, health, and movement direction. You are given 0-indexed integer arrays positions, healths, and a string directions (directions[i] is

Scroll to Top