14. Security : JavaScript Coding Challenge

Publié le: 11 septembre 2022
sur la chaîne: Frontend Forge
81
0

This is a JavaScript solution for sololearn community coding challenges -
Security

Click here to subscribe to the channel:
https://bit.ly/3ePLDJy

Problem Statement:

Evaluate a given floor of the casino to determine if there is a guard between the money and the thief, if there is not, you will sound an alarm.

Input Format:
A string of characters that includes $ (money), T (thief), and G (guard), that represents the layout of the casino floor.
Space on the casino floor that is not occupied by either money, the thief, or a guard is represented by the character x.

Output Format:
A string that says 'ALARM' if the money is in danger or 'quiet' if the money is safe.

Sample Input:
xxxxxGxx$xxxT

Sample Output:
ALARM

#javascript #securitybreach #security #codingchallenge


Sur cette page du site, vous pouvez voir la vidéo en ligne 14. Security : JavaScript Coding Challenge durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Frontend Forge 11 septembre 2022, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 81 fois et il a aimé 0 téléspectateurs. Bon visionnage!