This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| https://leetcode.com/problems/top-k-frequent-elements/submissions/ | |
| */ | |
| class Solution { | |
| public: | |
| struct Element { | |
| int val; | |
| int freq; | |
| Element(int val, int freq): val(val), freq(freq) {}; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def dlib_rectangle_to_list(self, dlib_bbox): | |
| """Converts a dlib rectangle to | |
| List(top left x, top left y, bottom right x, bottom right y) | |
| Args: | |
| dlib_bbox (dlib.rectangle): | |
| Returns: | |
| List[int]: Bounding box coordinates | |
| """ |