Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function solve (input) {
- let theLastOfSectors = input[0];
- let countRowsFirstSector = Number(input[1]);
- let countOddRowsSeats = Number(input[2]);
- let currentSector = '';
- for (let i = 0; i < 25; i++) {
- currentSector = 'BCDEFGHIJKLMNOPQRSTUVWXYZ'.charCodeAt(i);
- console.log(currentSector);
- if (theLastOfSectors.charCodeAt() < currentSector)
- break;
- }
- }
- solve ([
- 'B',
- '3',
- '2'
- ]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement