Ways to send the signal to alien

Publié le: 27 mai 2023
sur la chaîne: ContentForGeeks
128
2

You are trying to send signals to aliens using a linear array of A laser lights. You don't know much about how the aliens are going to percieve the signals, but what you know is that if two consecutive lights are on then the aliens might take it as a sign of danger and destroy the earth.

Find and return the total number of ways in which you can send a signal without compromising the safty of the earth. Return the ans % 109 + 7.


#leetcode #java #programming #interviewbit #contentforgeeks #geekforgeeks #solutions #solution #engineering #coding

Thanks for watching this video.
please visit the link for more details: https://www.contentforgeeks.com


Sur cette page du site, vous pouvez voir la vidéo en ligne Ways to send the signal to alien durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur ContentForGeeks 27 mai 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 128 fois et il a aimé 2 téléspectateurs. Bon visionnage!