You are given the root of a binary tree. You need to return the zigzag level order traversal of its…
Browsing: Intermediate
You are given an array prices where prices[i] is the price of a stock on day i. You may complete…
You are given two strings word1 and word2. In one operation, you can delete exactly one character from either string.…
Given a string s, find the length of the longest palindromic subsequence in s. A subsequence keeps relative order but…
Given two strings text1 and text2, find the length of the longest common substring between them. A substring is a…
Given two strings text1 and text2, find the length of their Longest Common Subsequence (LCS). A subsequence is a sequence…
You are given a list of non-overlapping intervals sorted by start time, and a new interval to insert. Your task…
You are given a list of CPU burst times for processes that all arrive at time 0. Using Shortest Job…
The Job Sequencing Problem asks you to schedule jobs to maximize total profit, given that each job: You need to…
This classic scheduling problem asks you to find the minimum number of railway platforms required so that no train has…