### Evaluate a given expression

Given an expression containing numeric operands with addition and subtraction operators, evaluate it. The expression may contain sub-expressions enclosed in opening and closing braces.

Ace your Coding Interview

Get hired by top tech companies with our comprehensive interview preparation.

Get StartedGiven an expression containing numeric operands with addition and subtraction operators, evaluate it. The expression may contain sub-expressions enclosed in opening and closing braces.

Given the string representation of a non-negative integer and an integer `k`

, find the smallest number that remains after taking out `k`

digits from it.

A string that may contain multiple consecutive instances of the same value is encoded to only store that value and its count. Given such an encoded sequence, decode it.

Given a string, find the length of the longest palindrome possible from its characters.

Given two strings, check if the second string can be constructed from characters of the first string, where each character of the first string can be used only once in the second string.

Given two strings, check if the second string is a subsequence of the first string.

Given a set of strings, print all pairs of anagrams together. Two strings, `X`

and `Y`

, are called anagrams if we can get a string `Y`

by rearranging the letters of the string `X`

and using all the characters of the string `X`

exactly once.

Given an integer representing the capacity of a cyber cafe and a sequence representing entry/exit logs of customers, find the total number of customers who could not get any computer.

Given an array of words where no word is the prefix of another, find the shortest unique prefix to identify each word in the array uniquely.

Given a string and a positive integer `k`

, find all distinct substrings of any length containing exactly `k`

distinct characters.

Given a valid roman numeral, convert it to the corresponding integer value.

Given a string representing the column name in an Excel sheet, return the number corresponding to the Excel column name.