cpinitiative / usaco-guide

A free collection of curated, high-quality resources to take you from Bronze to Platinum and beyond.
https://usaco.guide
Other
1.62k stars 494 forks source link

"key" should be "val" in Treaps.mdx #4679

Closed ndjapic closed 3 months ago

ndjapic commented 3 months ago

There is a typo in the section "Implicit Treaps" of the document "Treaps.mdx". In the cpp code of the split function both key and val are used. They should be the same, like in the next code of the same function that follow it.

bqi343 commented 3 months ago

can you link to the relevant lines in the Github file?

freakin23 commented 3 months ago

can you link to the relevant lines in the Github file?

line 215 and 219. both use an undeclared variable "key", it should be "val"