All Tracks/workshop breadth first search/
Đang tải...
Hướng dẫn thử thách
1 / 14

Step 1

In this workshop, you'll implement a function that generates all valid combinations of parentheses using a breadth-first search (BFS) approach. For example, the valid combinations of two pairs of parentheses are `(())` and `()()`. Start by creating a function named `gen_parentheses` with a single parameter `pairs`. For now, return an empty list from the function.
Vượt qua bài kiểm tra hiện tại để mở khóa bài tiếp theo.
main.py
UTF-8 • Tab Size: 2Kiểm tra bài:⌘↵
Test Output
Thử thách này không có bài test tự động. Hãy quan sát kết quả trực tiếp ở khung Preview.