Interviews
开始使用
准备
准备
新
与我们合作推广 ->
价格
登录 / 注册
获得完整访问权限
新
与我们合作推广 ->
价格
登录 / 注册
获得完整访问权限
用户界面编码
JavaScript 函数
系统设计
测验
算法编码
算法编码
解决涉及性能优化数据结构和算法的编码挑战。
在浏览器中编码
由前面试官解答
测试用例
搜索问题
按排序
问题数量
9
2
92
个问题
总时间
4
8
48
小时总计
题目列表
数据结构与算法面试
前端工程师的 DSA 指南 - 需要了解的重要概念、要做的顶级练习题和其他技巧
指南
指南
Selection Sort
Implement a function that performs a selection sort
算法编码
算法编码
难度
简单
语言
已完成用户
3.21k 完成
Stack
Implement a stack data structure containing the common stack methods
算法编码
算法编码
难度
简单
语言
已完成用户
9.11k 完成
Find Duplicates in Array
Implement a function to check if there are any duplicate numbers in the array
算法编码
算法编码
难度
简单
语言
已完成用户
3.38k 完成
Find Missing Number in Sequence
Implement a function to find the missing element in a sorted array
算法编码
算法编码
难度
简单
语言
已完成用户
2.84k 完成
Bubble Sort
Implement a function that performs a bubble sort
算法编码
算法编码
难度
简单
语言
已完成用户
352 完成
Count Set Bits in a Binary Number
Implement a function to find set bits in binary representation of a given integer
算法编码
算法编码
难度
简单
语言
已完成用户
925 完成
Insertion Sort
Implement a function that performs an insertion sort
算法编码
算法编码
难度
简单
语言
已完成用户
4.16k 完成
Optimal Stock Trading
Implement a function to find the maximum profit achievable by buying and selling a stock once
算法编码
算法编码
难度
简单
语言
已完成用户
1.14k 完成
Pair sum
Implement a function to find two numbers within an array of integers that add up to a target integer
算法编码
算法编码
难度
简单
语言
已完成用户
1.27k 完成
String Anagram
Implement a function to determine if two strings are anagram of each other
算法编码
算法编码
难度
简单
语言
已完成用户
1.16k 完成
Flip Binary Tree
Implement a function to flip the nodes in a binary tree
算法编码
算法编码
难度
简单
语言
已完成用户
802 完成
Binary Tree Maximum Depth
Implement a function to find the maximum depth of a binary tree
算法编码
算法编码
难度
简单
语言
已完成用户
829 完成
Staircase Climbing Combinations
Implement a function to find the number of ways to reach at the top of staircase
算法编码
算法编码
难度
简单
语言
已完成用户
533 完成
Balanced Brackets
Implement a function to determine if a string contains balanced brackets
算法编码
算法编码
难度
简单
语言
已完成用户
2.47k 完成
Binary Tree Equal
Implement a function to determine whether two binary trees are equal
算法编码
算法编码
难度
简单
语言
已完成用户
773 完成
Bit Counting
Implement a function to find number of set bits from 0 to n
算法编码
算法编码
难度
简单
语言
已完成用户
398 完成
Bit Reversal
Implement a function to flip the order of the bits in a given number
算法编码
算法编码
难度
简单
语言
已完成用户
321 完成
Linked List Reversal
Implement a function to reverse a linked list
算法编码
算法编码
难度
简单
语言
已完成用户
548 完成
String Palindrome
Implement a function to determine if a string is a palindrome
算法编码
算法编码
难度
简单
语言
已完成用户
786 完成
Linked List Detect Cycle
Implement a function to detect if there are cycles in a linked list
算法编码
算法编码
难度
简单
语言
已完成用户
490 完成
Binary Tree Subtree
Implement a function to check if a binary tree is a subtree of another binary tree
算法编码
算法编码
难度
简单
语言
已完成用户
449 完成
Meeting Calendar
Implement a function to check if all meetings can be attended
算法编码
算法编码
难度
简单
语言
已完成用户
589 完成
Linked Lists Combine Two Sorted
Implement a function to combine two sorted linked list
算法编码
算法编码
难度
简单
语言
已完成用户
427 完成
Array Product Excluding Current
Implement a function to find the product of elements in an array excluding the current element
算法编码
算法编码
难度
中等
语言
已完成用户
1.31k 完成
Binary Search
Implement a function that performs binary search on an array of numbers
算法编码
算法编码
难度
中等
语言
已完成用户
4.47k 完成
Binary Search Tree
Implement a binary search tree data structure including essential BST operations
算法编码
算法编码
难度
中等
语言
已完成用户
60 完成
Binary Tree
Implement a binary tree data structure including essential operations
算法编码
算法编码
难度
中等
语言
已完成用户
43 完成
Breadth-first Search
Implement a breadth-first search algorithm that traverses a directed graph in a breadth-first manner
算法编码
算法编码
难度
中等
语言
已完成用户
2.06k 完成
Depth-first Search
Implement a depth-first search algorithm that traverses a directed graph in a depth-first manner
算法编码
算法编码
难度
中等
语言
已完成用户
1.85k 完成
Is the Graph a Tree
Implement a function to determine if a graph is a valid tree
算法编码
算法编码
难度
中等
语言
已完成用户
221 完成
Heap Sort
Implement a function that performs a heap sort
算法编码
算法编码
难度
中等
语言
已完成用户
656 完成
Maximum Water Trapped Between Walls
Implement a function to find the maximum water volume between two walls in an array of walls
算法编码
算法编码
难度
中等
语言
已完成用户
348 完成
Queue
Implement a queue data structure containing the common queue methods
算法编码
算法编码
难度
中等
语言
已完成用户
1.98k 完成
Dijkstra's Algorithm
Implement Dijkstra's algorithm to find the shortest paths from a source vertex in a graph represented as an adjacency list.
算法编码
算法编码
难度
中等
语言
已完成用户
18 完成
Linked List
Implement a linked list data structure containing the common linked list methods
算法编码
算法编码
难度
中等
语言
已完成用户
45 完成
Merge Sort
Implement a function that performs a recursive merge sort
算法编码
算法编码
难度
中等
语言
已完成用户
1.06k 完成
Quick Sort
Implement a function that performs a recursive quick sort
算法编码
算法编码
难度
中等
语言
已完成用户
854 完成
Topological Sort
Implement a function that performs a topological sort
算法编码
算法编码
难度
中等
语言
已完成用户
328 完成
Maximum Sum in Contiguous Array
Implement a function to find the subarray with the maximum sum
算法编码
算法编码
难度
中等
语言
已完成用户
1.22k 完成
Smallest element in rotated sorted array
Implement a function to find the smallest element in rotated sorted array
算法编码
算法编码
难度
中等
语言
已完成用户
645 完成
Binary Tree Level Order Traversal
Implement a function to find the level order traversal of a binary tree
算法编码
算法编码
难度
中等
语言
已完成用户
444 完成
Maximum Product in Contiguous Array
Implement a function to find the subarray which has the largest product
算法编码
算法编码
难度
中等
语言
已完成用户
1.18k 完成
Find Element in Rotated Array
Implement a function to find an integer in a rotated sorted array
算法编码
算法编码
难度
中等
语言
已完成用户
676 完成
Most Common Elements
Implement a function to determine the most common elements in an integer array
算法编码
算法编码
难度
中等
语言
已完成用户
1.09k 完成
Binary Search Tree Kth Smallest Element
Implement a function to find the kth smallest node in a BST
算法编码
算法编码
难度
中等
语言
已完成用户
502 完成
Binary Search Tree Lowest Common Ancestor
Implement a function to find the LCA in a binary search tree
算法编码
算法编码
难度
中等
语言
已完成用户
421 完成
Validate Binary Search Tree
Implement a function to validate whether a binary tree is a valid binary search tree
算法编码
算法编码
难度
中等
语言
已完成用户
436 完成
Count Islands in a Grid
Implement a function to count distinct islands in a 2D binary grid
算法编码
算法编码
难度
中等
语言
已完成用户
253 完成
Distinct Paths in Grid
Implement a function to calculate distinct paths for a robot moving on an m x n grid
算法编码
算法编码
难度
中等
语言
已完成用户
195 完成
Merge Overlapping Intervals
Implement a function to merge overlapping intervals
算法编码
算法编码
难度
中等
语言
已完成用户
278 完成
Delete Nth Node from End of Linked List
Implement a function to delete the nth node from the end of a linked list
算法编码
算法编码
难度
中等
语言
已完成用户
238 完成
Rearrange Linked List
Implement a function to rearrange the nodes in a linked list
算法编码
算法编码
难度
中等
语言
已完成用户
160 完成
Matrix Zeroing
Implement a function to set matrix rows and columns to zero
算法编码
算法编码
难度
中等
语言
已完成用户
127 完成
Neighborhood Theft
Implement a function to find maximum money to rob without alerting police
算法编码
算法编码
难度
中等
语言
已完成用户
208 完成
Sum Without Addition
Implement a function to find the sum of two integers without using + and - operator
算法编码
算法编码
难度
中等
语言
已完成用户
119 完成
Triplet Sum
Implement a function to find all unique triplets with distinct indices that sum to 0
算法编码
算法编码
难度
中等
语言
已完成用户
193 完成
Minimum Coins for Change
Implement a function to return minimum coins needed to make the given amount
算法编码
算法编码
难度
中等
语言
已完成用户
282 完成
Combinations for Target Sum
Implement a function to count combinations that sum to the target
算法编码
算法编码
难度
中等
语言
已完成用户
221 完成
Course Dependency
Implement a function to check if all courses can be completed given prerequisites
算法编码
算法编码
难度
中等
语言
已完成用户
213 完成
Longest Consecutive Number Sequence
Implement a function to find the length of the longest consecutive number sequence
算法编码
算法编码
难度
中等
语言
已完成用户
205 完成
Longest Increasing Subsequence
Implement a function to find the length of the longest increasing subsequence
算法编码
算法编码
难度
中等
语言
已完成用户
173 完成
String Anagram Groups
Implement a function to group an array of strings into anagrams
算法编码
算法编码
难度
中等
语言
已完成用户
317 完成
Decode Message
Implement a function to count ways to decode a numeric string
算法编码
算法编码
难度
中等
语言
已完成用户
130 完成
Palindromic Substrings
Implement a function to count all palindromic substrings in a string
算法编码
算法编码
难度
中等
语言
已完成用户
176 完成
Segment Words
Implement a function to check whether a string be formed from dictionary words
算法编码
算法编码
难度
中等
语言
已完成用户
137 完成
Task Coordination
Implement a function to find minimum intervals for tasks with cooldown
算法编码
算法编码
难度
中等
语言
已完成用户
89 完成
Trie (Prefix Tree)
Implement a trie-prefix-tree with insert, search, and starts with functionality
算法编码
算法编码
难度
中等
语言
已完成用户
115 完成
End of Array Reachable
Implement a function to determine if the end of the array is reachable
算法编码
算法编码
难度
中等
语言
已完成用户
643 完成
Binary Tree Rebuilding from Preorder and Inorder Traversals
Implement a function to construct a binary tree from preorder and inorder traversals
算法编码
算法编码
难度
中等
语言
已完成用户
203 完成
Disjoint Intervals
Implement a function to determine the minimum amount of removals to get non-overlapping intervals
算法编码
算法编码
难度
中等
语言
已完成用户
184 完成
Graph Count Connected Components
Implement a function to count connected components in a graph
算法编码
算法编码
难度
中等
语言
已完成用户
151 完成
Find Word in Grid
Implement a function to check the existence of a word in a grid
算法编码
算法编码
难度
中等
语言
已完成用户
162 完成
Merge New Interval
Implement a function to insert a new interval in the given intervals
算法编码
算法编码
难度
中等
语言
已完成用户
205 完成
Longest Common Subsequence
Implement a function to find the longest common subsequence in two strings
算法编码
算法编码
难度
中等
语言
已完成用户
181 完成
Longest Non-repeating Substring
Implement a function to find the length of longest substring with unique characters
算法编码
算法编码
难度
中等
语言
已完成用户
242 完成
Find the Longest Palindromic Substring
Implement a function to find the longest palindromic substring
算法编码
算法编码
难度
中等
语言
已完成用户
175 完成
Longest Repeating Substring After Replacements
Implement a function to find the longest uniform substring after up to k replacements
算法编码
算法编码
难度
中等
语言
已完成用户
124 完成
Matrix Rotation
Implement a function to rotate the given matrix by 90 degrees
算法编码
算法编码
难度
中等
语言
已完成用户
121 完成
Matrix Spiral Traversal
Implement a function to traverse the matrix in spiral order
算法编码
算法编码
难度
中等
语言
已完成用户
108 完成
Neighborhood Theft (Circular)
Implement a function to find maximum money to rob in circular houses without alerting police
算法编码
算法编码
难度
中等
语言
已完成用户
132 完成
Ocean Flow
Implement a function returning cells with water flow to both oceans
算法编码
算法编码
难度
中等
语言
已完成用户
85 完成
Word Finder
Implement a data structure where words can be added and support wildcard searching
算法编码
算法编码
难度
中等
语言
已完成用户
103 完成
Graph Clone
Implement a function to deeply clone a connected and undirected graph
算法编码
算法编码
难度
中等
语言
已完成用户
167 完成
Minimum Meeting Rooms Needed
Implement a function to find the minimum number of required conference rooms
算法编码
算法编码
难度
中等
语言
已完成用户
215 完成
Heap
Implement a heap data structure containing essential heap operations
算法编码
算法编码
难度
困难
语言
已完成用户
22 完成
Binary Tree Serialization and Deserialization
Implement a function to serialize and deserialize a binary tree
算法编码
算法编码
难度
困难
语言
已完成用户
144 完成
Binary Tree Maximum Total Path
Implement a function to find the maximum total of nodes in a binary tree path
算法编码
算法编码
难度
困难
语言
已完成用户
216 完成
Find Words in Grid
Implement a function to find all the words present in the grid
算法编码
算法编码
难度
困难
语言
已完成用户
80 完成
Linked Lists Combine K Sorted
Implement a function to combine k sorted linked lists
算法编码
算法编码
难度
困难
语言
已完成用户
105 完成
Shortest Substring Containing Characters
Implement a function to return the smallest substring of a string containing all characters from another string
算法编码
算法编码
难度
困难
语言
已完成用户
56 完成
Extraterrestrial Language
Implement a function to verify and return an extraterrestrial language's alphabet order
算法编码
算法编码
难度
困难
语言
已完成用户
61 完成
Number Stream Median
Implement a function to find the median of a dynamic stream of integers
算法编码
算法编码
难度
困难
语言
已完成用户
72 完成