The Vertical Order Traversal of a Binary Tree problem asks us to traverse a binary tree in a special way:…
Author: Anirudh Khurana
The Count Distinct Substrings problem asks us to calculate the number of unique substrings of a given string. Examples Example…
The Complete String problem asks us to find the longest string from a given list such that all its prefixes…
The Implement Trie II problem is an extension of the basic Implement Trie (Prefix Tree). In addition to inserting words…
The Implement Trie (Prefix Tree) problem asks us to design a Trie data structure that supports the following operations: A…
The Roman to Integer problem asks us to convert a given Roman numeral string into its corresponding integer value. Here’s…
The Maximum Nesting Depth of the Parentheses problem asks us to determine the deepest level of nested parentheses in a…
The Sort Characters By Frequency problem asks us to rearrange the characters of a given string in descending order of…
The Valid Anagram problem asks us to check if two given strings s and t are anagrams of each other.…
The Rotate String problem asks us to check whether one string goal can be obtained by rotating another string s.…