Backspace String Compare Leetcode LeetCode Question Link: https://leetcode.com/problems/backspace-string-compare/ Given two strings s and t, return true if they are equal when both are typed into empty text editors. ‘#’ means a backspace character. Note that after backspacing an empty text, the text will continue empty. Example 2: Input: s = “ab##”, t = “c#d#” Output: true Explanation: Both s and t become […]

Read More →

Trie Data Structure in JavaScript 💡 A Trie is a kind of tree, known by many names including prefix tree, digital search tree, and retrieval tree (hence the name ‘trie’). A trie represents a sequence in its structure. It stores sequences of values rather than individual single values. It can have multiple child nodes where […]

Read More →