You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
((topic, accepted / topic_to_total[topic]) for topic, accepted in topic_to_accepted.items()),
139
+
key=lambdax: x[1]
140
+
)
141
+
)
142
+
)
143
+
```
144
+
145
+
The output will look like this:
146
+
147
+
```python
148
+
[('memoization', 0.0),
149
+
('number-theory', 0.0),
150
+
('binary-search-tree', 0.0),
151
+
('quickselect', 0.0),
152
+
('recursion', 0.0),
153
+
('suffix-array', 0.0),
154
+
('topological-sort', 0.0),
155
+
('shortest-path', 0.0),
156
+
('trie', 0.0),
157
+
('geometry', 0.0),
158
+
('brainteaser', 0.0),
159
+
('combinatorics', 0.0),
160
+
('line-sweep', 0.0),
161
+
162
+
...
163
+
164
+
('union-find', 0.3076923076923077),
165
+
('linked-list', 0.3333333333333333),
166
+
('string-matching', 0.3333333333333333),
167
+
('segment-tree', 0.4),
168
+
('data-stream', 0.5),
169
+
('strongly-connected-component', 0.5),
170
+
('minimum-spanning-tree', 0.6666666666666666),
171
+
('merge-sort', 1.0),
172
+
('doubly-linked-list', 1.0)]
173
+
```
174
+
175
+
So it is clearly visible which topics we should focus on in our preparation.
176
+
In this case memoization topic is one of the targets for improvement, so I can go to https://leetcode.com/tag/memoization/ and choose a new memoization problem. Or use python to automate the process.
177
+
178
+
You can find other examples of usage in `example.py`
32
179
33
180
Autogenerated by swagger documentation can be found [here](/README.generated.md).
0 commit comments