Benjamin Bulbs - Solution | Java Foundation Course

Опубликовано: 03 Декабрь 2019
на канале: Pepcoding
41,855
747

Question Name:
Benjamin Bulbs

Question Link:
https://nados.io/question/the-curious...

Question Statement:
1. You are given n number of bulbs. They are all switched off. A weird fluctuation in voltage hits the circuit n times. In the 1st fluctuation all bulbs are toggled, in the 2nd fluctuation every 2nd bulb is toggled, in the 3rd fluctuation every 3rd bulb is toggled and so on. You've to find which bulbs will be switched on after n fluctuations.
2. Take as input a number n, representing the number of bulbs.
3. Print all the bulbs that will be on after the nth fluctuation in voltage.
--------------------------------------------------------------------------------------------------------------------------------------------------------------

Please consume this content on nados.io for a richer experience. It is necessary to solve the questions while watching videos, nados.io enables that.

NADOS also enables doubt support, career opportunities and contests besides free of charge content for learning. In this video, we discuss the solution of the puzzle Benjamin Bulbs. To understand the puzzle, click here:    • Benjamin Bulbs - Question | Java Foun...  

--------------------------------------------------------------------------------------------------------------------------------------------------------------

Pepcoding has taken the initiative to provide counselling and learning resources to all curious, skillful and dedicated Indian coders. This video is part of the series to impart industry-level web development and programming skills in the community.

For better experience and well organized free resources visit -

We also provide professional courses with live classes and placement opportunities.

DSA Level 1 and Level 2
https://www.youtube.com/c/Pepcoding/p...

Here is a roadmap to our Free study content and know more about our resources here -

We are also available on the following social media platforms: -

Facebook(Meta) -   / pepcoding  
Instagram -   / pepcoding  
LinkedIn -   / pepc.  .
Pinterest -   / _c.  .
Twitter -   / pepcoding  

Youtube (English Channel)-    / @pepcodingprogramminginengl6063  

Also take a look at our placement assistance -

HAPPY PROGRAMMING!
Pep it up.....


Hashtags

#java #javafoundation #benjaminbulbs


Смотрите видео Benjamin Bulbs - Solution | Java Foundation Course онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Pepcoding 03 Декабрь 2019, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 41,855 раз и оно понравилось 747 людям.