Given a Binary Search Tree (BST) and a positive integer k , find the k th largest element in the Binary Search Tree. For example, in the following BST,…
Consider streaming services like Max, Netflix, and Hulu. The companies developing these services provide media content to a wide array of users on diffe…
Determine if a 9 x 9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules: Each row must contain the digit…
Systems Design – Car Share Rental App We are building a car sharing rental app that enables users who want to rent a car to find users who have personal…
Longest Substring Without Repeating Characters Given a string, find the longest substring that does not contain any repeated characters. Example 1: Inpu…
Create a React app that allows a user to search entries received from the following “posts” API: https://jsonplaceholder.typicode.com/posts A post will…
How do you write a SQL query to find duplicate records in a table and how do you remove them? 这道题考察的是 SQL 中重复数据的查找与清理,核心思路通常是先按业务键分组统计重复行数,再结合窗口函数或自连接定位…
We are trying to create a video game in which aliens are attacking a friendly base. You can imagine the base to be a 1D line that goes from 0 to 10. The…
Implement Promise.all Promise.all() takes an iterable of Promise objects and returns a single Promise. The returned Promise resolves to an array of resu…
You are given a 0-indexed integer array nums of even length consisting of an equal number of positive and negative integers. You should return the array…
Hyperproof has a feature called Automated Controls Testing , where our users can write tests against data fetched from our Hypersyncs (integrations). Th…
You are given a graph with X and Y axes. Each axis represents positive integers. We will plot a graph based on given X and Y points. Starting from (0,0)…
Card game N players randomly draw 4 cards per person. Winning rule Same color Same number Sequential 这道题给出多人随机抽取 4 张牌的设定,需要根据手牌判断获胜条件是否满足:同色、同数字、或连续顺子。核…
Given a string s containing just the characters ( , ) , { , } , [ and ] , determine if the input string is valid. An input string is valid if: Open brac…
We’re going to try to build the start of a document search engine. Our search engine should take in a static list of documents — long alphanumeric, lowe…
Background Today Axon offers a Records Management System (RMS) tailored for police agencies, designed to handle the management of police records. One cr…
Find the distance between two nodes in a binary tree. The distance between two nodes is defined as the minimum number of edges to be traversed to reach…