leetcode-potd

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

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,

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