#competitive-programming
Read more stories on Hashnode
Articles with this tag
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...
You are given two strings s and t. String t is generated by random shuffling string s and then add one more letter at a random position. Return the...
You are given an array of positive integers nums and want to erase a subarray containing unique elements. The score you get by erasing the subarray is...
Given an integer array nums, return true if there exists a triple of indices (i, j, k) such that i < j < k and nums[i] < nums[j] < nums[k]. If no such...
The next greater element of some element x in an array is the first greater element that is to the right of x in the same array. You are given two...
Given the root of a binary tree, return the leftmost value in the last row of the tree. Example 1: Input: root = [2,1,3] Output: 1 Example 2: Input:...