14. Security : JavaScript Coding Challenge

Published: 11 September 2022
on channel: Frontend Forge
86
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


On this page of the site you can watch the video online 14. Security : JavaScript Coding Challenge with a duration of hours minute second in good quality, which was uploaded by the user Frontend Forge 11 September 2022, share the link with friends and acquaintances, this video has already been watched 86 times on youtube and it was liked by 0 viewers. Enjoy your viewing!