Interviews
开始使用
准备
准备
新
与我们合作推广 ->
价格
登录 / 注册
获得完整访问权限
新
与我们合作推广 ->
价格
登录 / 注册
获得完整访问权限
用户界面编码
JavaScript 函数
系统设计
测验
算法编码
算法编码
解决涉及性能优化数据结构和算法的编码挑战。
在浏览器中编码
由前面试官解答
测试用例
搜索问题
按排序
问题数量
9
2
92
个问题
总时间
4
8
48
小时总计
题目列表
数据结构与算法面试
前端工程师的 DSA 指南 - 需要了解的重要概念、要做的顶级练习题和其他技巧
指南
指南
Selection Sort
Implement a function that performs a selection sort
算法编码
算法编码
难度
简单
语言
已完成用户
3.44k 完成
Stack
Implement a stack data structure containing the common stack methods
算法编码
算法编码
难度
简单
语言
已完成用户
9.31k 完成
Find Duplicates in Array
Implement a function to check if there are any duplicate numbers in the array
算法编码
算法编码
难度
简单
语言
已完成用户
3.92k 完成
Find Missing Number in Sequence
Implement a function to find the missing element in a sorted array
算法编码
算法编码
难度
简单
语言
已完成用户
3.3k 完成
Bubble Sort
Implement a function that performs a bubble sort
算法编码
算法编码
难度
简单
语言
已完成用户
500 完成
Count Set Bits in a Binary Number
Implement a function to find set bits in binary representation of a given integer
算法编码
算法编码
难度
简单
语言
已完成用户
1.05k 完成
Insertion Sort
Implement a function that performs an insertion sort
算法编码
算法编码
难度
简单
语言
已完成用户
4.22k 完成
Optimal Stock Trading
Implement a function to find the maximum profit achievable by buying and selling a stock once
算法编码
算法编码
难度
简单
语言
已完成用户
1.31k 完成
Pair sum
Implement a function to find two numbers within an array of integers that add up to a target integer
算法编码
算法编码
难度
简单
语言
已完成用户
1.48k 完成
String Anagram
Implement a function to determine if two strings are anagram of each other
算法编码
算法编码
难度
简单
语言
已完成用户
1.33k 完成
Flip Binary Tree
Implement a function to flip the nodes in a binary tree
算法编码
算法编码
难度
简单
语言
已完成用户
929 完成
Binary Tree Maximum Depth
Implement a function to find the maximum depth of a binary tree
算法编码
算法编码
难度
简单
语言
已完成用户
950 完成
Staircase Climbing Combinations
Implement a function to find the number of ways to reach at the top of staircase
算法编码
算法编码
难度
简单
语言
已完成用户
618 完成
Balanced Brackets
Implement a function to determine if a string contains balanced brackets
算法编码
算法编码
难度
简单
语言
已完成用户
2.85k 完成
Binary Tree Equal
Implement a function to determine whether two binary trees are equal
算法编码
算法编码
难度
简单
语言
已完成用户
883 完成
Bit Counting
Implement a function to find number of set bits from 0 to n
算法编码
算法编码
难度
简单
语言
已完成用户
460 完成
Bit Reversal
Implement a function to flip the order of the bits in a given number
算法编码
算法编码
难度
简单
语言
已完成用户
368 完成
Linked List Reversal
Implement a function to reverse a linked list
算法编码
算法编码
难度
简单
语言
已完成用户
618 完成
String Palindrome
Implement a function to determine if a string is a palindrome
算法编码
算法编码
难度
简单
语言
已完成用户
917 完成
Linked List Detect Cycle
Implement a function to detect if there are cycles in a linked list
算法编码
算法编码
难度
简单
语言
已完成用户
562 完成
Binary Tree Subtree
Implement a function to check if a binary tree is a subtree of another binary tree
算法编码
算法编码
难度
简单
语言
已完成用户
510 完成
Meeting Calendar
Implement a function to check if all meetings can be attended
算法编码
算法编码
难度
简单
语言
已完成用户
674 完成
Linked Lists Combine Two Sorted
Implement a function to combine two sorted linked list
算法编码
算法编码
难度
简单
语言
已完成用户
492 完成
Array Product Excluding Current
Implement a function to find the product of elements in an array excluding the current element
算法编码
算法编码
难度
中等
语言
已完成用户
1.54k 完成
Binary Search
Implement a function that performs binary search on an array of numbers
算法编码
算法编码
难度
中等
语言
已完成用户
4.53k 完成
Binary Search Tree
Implement a binary search tree data structure including essential BST operations
算法编码
算法编码
难度
中等
语言
已完成用户
77 完成
Binary Tree
Implement a binary tree data structure including essential operations
算法编码
算法编码
难度
中等
语言
已完成用户
53 完成
Breadth-first Search
Implement a breadth-first search algorithm that traverses a directed graph in a breadth-first manner
算法编码
算法编码
难度
中等
语言
已完成用户
2.08k 完成
Depth-first Search
Implement a depth-first search algorithm that traverses a directed graph in a depth-first manner
算法编码
算法编码
难度
中等
语言
已完成用户
1.87k 完成
Is the Graph a Tree
Implement a function to determine if a graph is a valid tree
算法编码
算法编码
难度
中等
语言
已完成用户
252 完成
Heap Sort
Implement a function that performs a heap sort
算法编码
算法编码
难度
中等
语言
已完成用户
667 完成
Maximum Water Trapped Between Walls
Implement a function to find the maximum water volume between two walls in an array of walls
算法编码
算法编码
难度
中等
语言
已完成用户
412 完成
Queue
Implement a queue data structure containing the common queue methods
算法编码
算法编码
难度
中等
语言
已完成用户
2.01k 完成
Dijkstra's Algorithm
Implement Dijkstra's algorithm to find the shortest paths from a source vertex in a graph represented as an adjacency list.
算法编码
算法编码
难度
中等
语言
已完成用户
19 完成
Linked List
Implement a linked list data structure containing the common linked list methods
算法编码
算法编码
难度
中等
语言
已完成用户
57 完成
Merge Sort
Implement a function that performs a recursive merge sort
算法编码
算法编码
难度
中等
语言
已完成用户
1.07k 完成
Quick Sort
Implement a function that performs a recursive quick sort
算法编码
算法编码
难度
中等
语言
已完成用户
873 完成
Topological Sort
Implement a function that performs a topological sort
算法编码
算法编码
难度
中等
语言
已完成用户
335 完成
Maximum Sum in Contiguous Array
Implement a function to find the subarray with the maximum sum
算法编码
算法编码
难度
中等
语言
已完成用户
1.43k 完成
Smallest element in rotated sorted array
Implement a function to find the smallest element in rotated sorted array
算法编码
算法编码
难度
中等
语言
已完成用户
769 完成
Binary Tree Level Order Traversal
Implement a function to find the level order traversal of a binary tree
算法编码
算法编码
难度
中等
语言
已完成用户
517 完成
Maximum Product in Contiguous Array
Implement a function to find the subarray which has the largest product
算法编码
算法编码
难度
中等
语言
已完成用户
1.37k 完成
Find Element in Rotated Array
Implement a function to find an integer in a rotated sorted array
算法编码
算法编码
难度
中等
语言
已完成用户
806 完成
Most Common Elements
Implement a function to determine the most common elements in an integer array
算法编码
算法编码
难度
中等
语言
已完成用户
1.27k 完成
Binary Search Tree Kth Smallest Element
Implement a function to find the kth smallest node in a BST
算法编码
算法编码
难度
中等
语言
已完成用户
580 完成
Binary Search Tree Lowest Common Ancestor
Implement a function to find the LCA in a binary search tree
算法编码
算法编码
难度
中等
语言
已完成用户
495 完成
Validate Binary Search Tree
Implement a function to validate whether a binary tree is a valid binary search tree
算法编码
算法编码
难度
中等
语言
已完成用户
503 完成
Count Islands in a Grid
Implement a function to count distinct islands in a 2D binary grid
算法编码
算法编码
难度
中等
语言
已完成用户
295 完成
Distinct Paths in Grid
Implement a function to calculate distinct paths for a robot moving on an m x n grid
算法编码
算法编码
难度
中等
语言
已完成用户
222 完成
Merge Overlapping Intervals
Implement a function to merge overlapping intervals
算法编码
算法编码
难度
中等
语言
已完成用户
325 完成
Delete Nth Node from End of Linked List
Implement a function to delete the nth node from the end of a linked list
算法编码
算法编码
难度
中等
语言
已完成用户
272 完成
Rearrange Linked List
Implement a function to rearrange the nodes in a linked list
算法编码
算法编码
难度
中等
语言
已完成用户
183 完成
Matrix Zeroing
Implement a function to set matrix rows and columns to zero
算法编码
算法编码
难度
中等
语言
已完成用户
154 完成
Neighborhood Theft
Implement a function to find maximum money to rob without alerting police
算法编码
算法编码
难度
中等
语言
已完成用户
252 完成
Sum Without Addition
Implement a function to find the sum of two integers without using + and - operator
算法编码
算法编码
难度
中等
语言
已完成用户
137 完成
Triplet Sum
Implement a function to find all unique triplets with distinct indices that sum to 0
算法编码
算法编码
难度
中等
语言
已完成用户
227 完成
Minimum Coins for Change
Implement a function to return minimum coins needed to make the given amount
算法编码
算法编码
难度
中等
语言
已完成用户
334 完成
Combinations for Target Sum
Implement a function to count combinations that sum to the target
算法编码
算法编码
难度
中等
语言
已完成用户
263 完成
Course Dependency
Implement a function to check if all courses can be completed given prerequisites
算法编码
算法编码
难度
中等
语言
已完成用户
250 完成
Longest Consecutive Number Sequence
Implement a function to find the length of the longest consecutive number sequence
算法编码
算法编码
难度
中等
语言
已完成用户
243 完成
Longest Increasing Subsequence
Implement a function to find the length of the longest increasing subsequence
算法编码
算法编码
难度
中等
语言
已完成用户
200 完成
String Anagram Groups
Implement a function to group an array of strings into anagrams
算法编码
算法编码
难度
中等
语言
已完成用户
379 完成
Decode Message
Implement a function to count ways to decode a numeric string
算法编码
算法编码
难度
中等
语言
已完成用户
157 完成
Palindromic Substrings
Implement a function to count all palindromic substrings in a string
算法编码
算法编码
难度
中等
语言
已完成用户
212 完成
Segment Words
Implement a function to check whether a string be formed from dictionary words
算法编码
算法编码
难度
中等
语言
已完成用户
161 完成
Task Coordination
Implement a function to find minimum intervals for tasks with cooldown
算法编码
算法编码
难度
中等
语言
已完成用户
106 完成
Trie (Prefix Tree)
Implement a trie-prefix-tree with insert, search, and starts with functionality
算法编码
算法编码
难度
中等
语言
已完成用户
135 完成
End of Array Reachable
Implement a function to determine if the end of the array is reachable
算法编码
算法编码
难度
中等
语言
已完成用户
758 完成
Binary Tree Rebuilding from Preorder and Inorder Traversals
Implement a function to construct a binary tree from preorder and inorder traversals
算法编码
算法编码
难度
中等
语言
已完成用户
229 完成
Disjoint Intervals
Implement a function to determine the minimum amount of removals to get non-overlapping intervals
算法编码
算法编码
难度
中等
语言
已完成用户
220 完成
Graph Count Connected Components
Implement a function to count connected components in a graph
算法编码
算法编码
难度
中等
语言
已完成用户
182 完成
Find Word in Grid
Implement a function to check the existence of a word in a grid
算法编码
算法编码
难度
中等
语言
已完成用户
193 完成
Merge New Interval
Implement a function to insert a new interval in the given intervals
算法编码
算法编码
难度
中等
语言
已完成用户
241 完成
Longest Common Subsequence
Implement a function to find the longest common subsequence in two strings
算法编码
算法编码
难度
中等
语言
已完成用户
213 完成
Longest Non-repeating Substring
Implement a function to find the length of longest substring with unique characters
算法编码
算法编码
难度
中等
语言
已完成用户
301 完成
Find the Longest Palindromic Substring
Implement a function to find the longest palindromic substring
算法编码
算法编码
难度
中等
语言
已完成用户
205 完成
Longest Repeating Substring After Replacements
Implement a function to find the longest uniform substring after up to k replacements
算法编码
算法编码
难度
中等
语言
已完成用户
146 完成
Matrix Rotation
Implement a function to rotate the given matrix by 90 degrees
算法编码
算法编码
难度
中等
语言
已完成用户
143 完成
Matrix Spiral Traversal
Implement a function to traverse the matrix in spiral order
算法编码
算法编码
难度
中等
语言
已完成用户
129 完成
Neighborhood Theft (Circular)
Implement a function to find maximum money to rob in circular houses without alerting police
算法编码
算法编码
难度
中等
语言
已完成用户
162 完成
Ocean Flow
Implement a function returning cells with water flow to both oceans
算法编码
算法编码
难度
中等
语言
已完成用户
99 完成
Word Finder
Implement a data structure where words can be added and support wildcard searching
算法编码
算法编码
难度
中等
语言
已完成用户
119 完成
Graph Clone
Implement a function to deeply clone a connected and undirected graph
算法编码
算法编码
难度
中等
语言
已完成用户
192 完成
Minimum Meeting Rooms Needed
Implement a function to find the minimum number of required conference rooms
算法编码
算法编码
难度
中等
语言
已完成用户
249 完成
Heap
Implement a heap data structure containing essential heap operations
算法编码
算法编码
难度
困难
语言
已完成用户
27 完成
Binary Tree Serialization and Deserialization
Implement a function to serialize and deserialize a binary tree
算法编码
算法编码
难度
困难
语言
已完成用户
167 完成
Binary Tree Maximum Total Path
Implement a function to find the maximum total of nodes in a binary tree path
算法编码
算法编码
难度
困难
语言
已完成用户
253 完成
Find Words in Grid
Implement a function to find all the words present in the grid
算法编码
算法编码
难度
困难
语言
已完成用户
96 完成
Linked Lists Combine K Sorted
Implement a function to combine k sorted linked lists
算法编码
算法编码
难度
困难
语言
已完成用户
130 完成
Shortest Substring Containing Characters
Implement a function to return the smallest substring of a string containing all characters from another string
算法编码
算法编码
难度
困难
语言
已完成用户
67 完成
Extraterrestrial Language
Implement a function to verify and return an extraterrestrial language's alphabet order
算法编码
算法编码
难度
困难
语言
已完成用户
71 完成
Number Stream Median
Implement a function to find the median of a dynamic stream of integers
算法编码
算法编码
难度
困难
语言
已完成用户
87 完成