Description Submission
2830. Maximize the Profit as the Salesman
Description Submission
2597. The Number of Beautiful Subsets
Description Submission DFS might be better, but the scale of the data fits in brute-force very well.
442. Find All Duplicates in an Array
Description Submission
2327. Number of People Aware of a Secret
Description Submission
2222. Number of Ways to Select Buildings
Description Submission