docs: standardize accordion components in problem hints

This commit is contained in:
Prad Nukala committed 2026-07-14 11:10:30 -04:00
1 parent 3e4c8c7065
commit d322faa3a8
5 files changed
+30 -30

No files matched your search

+6 -6
View File
@@ -13,21 +13,21 @@ description: Top K Frequent Elements
## Hints
<Accordions type="single">
<Accordion title="Constraints">
<Accordion type="single">
<AccordionItem title="Constraints">
Constraints:
• `1 <= nums.length <= 10^5`
• `-10^4 <= nums[i] <= 10^4`
• `k` is in the range `[1, the number of unique elements in the array]`
• It is guaranteed that the answer is unique.
</Accordion>
<Accordion title="Problem Statement">
</AccordionItem>
<AccordionItem title="Problem Statement">
Given an integer array nums and an integer `k`, return the `k` most frequent elements.
You may return the answer in any order.
Follow up: Your algorithm's time complexity must be better than `O(n log n)`, where n is the array's size.
</Accordion>
</Accordions>
</AccordionItem>
</Accordion>
## Solution