Viewing insights from USACO 2023 January Contest, Gold: Lights Off that are similar (thus shared) with only this insight from Codeforces 1146C: Tree Diameter: When doing a bitmask problem, consider comparing each bit one at a time. When comparing with two numbers, consider the place where the bits first differ by tester
- Take advantage of a cycle to avoid rechecking the same bitmask multiple times. Avoid doing repeated work... Ask if you really REALLY need to do something... by tester
Page 1 of 1.
View links to all pages
1About • Privacy Notice • Rules • Problems list • Journal • Your profile • GitHub
Moon Symbol icon by Icons8 • Sun icon by Icons8 • Emojis from Twemoji by Twitter under CC by 4.0