Skip to content

weijie ou's scratch pad

writing and tech sharing from a backend engineer

Tag: leetcode

Summary and thinking on Bulb Switcher problem

Bulb Switcher Problem: There are n bulbs that are initially off. You first turn on all the bulbs. Then, you turn off every second bulb. On the third round, you toggle every third bulb (turning on if it’s off or turning off if it’s on). For the ith round, you toggle every i bulb. For… Continue reading Summary and thinking on Bulb Switcher problem

Published October 25, 2019
Categorized as Computer Science Tagged algorithm, leetcode

Recent Posts

  • Summary and thinking on Bulb Switcher problem
  • JavaScript (jQuery AngularJS) Notes
  • Compile & install 32 bit Python 2.7 on 64 bit CentOS 6.5
  • How to check Python version (both command-line and programmatically)

Recent Comments

    Archives

    • October 2019
    • October 2016

    Categories

    • Computer Science

    Meta

    • Register
    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    weijie ou's scratch pad
    Proudly powered by WordPress.