Leetcode 319 Solution

This article provides solution to leetcode question 319 (bulb-switcher)

https://leetcode.com/problems/bulb-switcher

Solution

class Solution {
public:
    int bulbSwitch(int n) {
        return sqrt(n);
    }
};