Number of open doors | TCS Coding Question | Function that counts the number of doors opens after the Nth turn ; Find the number of open doors ; Return the resultant count of open doors ; Driver Code
function countOpenDoors ( N ) { let doorsOpen = parseInt ( Math . sqrt ( N ) ) ; return doorsOpen ; } let N = 100 ; document . write ( countOpenDoors ( N ) ) ;