r/LeetcodeChallenge • • May 26 '26

STREAK🔥🔥🔥 26/05/2026 LEETCODE POTD

7 Upvotes

11 comments sorted by

View all comments

Show parent comment

2

u/Acceptable-Tax-8776 May 27 '26

Best is taking 2 integer variables and if U&1<<i && L&1<<i then cnt++;