CSES Bit Strings C solution simple math problem
YOUR LINK HERE:
http://youtube.com/watch?v=o_tE2ro5S24
In this video I fully explain how to solve the Bit Strings problem from the CSES problem set. We need to observe how for each bit we only have two choices here: we either set it to 0 or to 1. This will lead us to finding the value that we should output. • Link to the solution: https://cses.fi/paste/f900b3f27dfe71c... • 00:00 reading the problem instruction • 01:04 analyzing some specific cases and then extracting the formula for the general case • 07:53 showing how the power function can be optimized • 10:24 reviewing the solution's implementation • 13:06 closing the video
#############################
