Skip to main content

Posts

ASSESSMENT -3

 ASSESSMENT-3 USER REGISTRATION FORM   LANDING PAGE DESIGN with CSS   GRID DESIGN with CSS  https://zen-assessment-3.netlify.app  
Recent posts

ASSESSMENT - 2

ASSESSMENT - 2 A number is said to be a twisted prime if it is a prime number and the reverse of the number is also a prime number.   Input: The first line of input contains a number N. Output: Print the answer "Yes" or "No". sample input : 97 sample output : Yes const   readline  =  require ( 'readline' ); const   inp  =  readline . createInterface ({      input :   process . stdin }); const   userInput  = []; inp . on ( "line" , ( data )  =>  {      userInput . push ( data ); }); inp . on ( "close" , ()  =>  {      var   num  =  Number ( userInput [ 0 ]);      var   str  =  String ( num );      var   arr  =  str . split ( '' ). map (( val )  =>   Number ( val ))      var   rarr  =  arr . ...

ASSESSMENT - 1

ASSESSMENT - 1 Given a string S of length N,reverse every word in place Input Size:1<=N<=100000 sample input : GOOD GOOD sample output : DOOG DOOG const   readline  =  require ( 'readline' ); const   inp  =  readline . createInterface ({      input:   process . stdin }); const   userInput  = []; inp . on ( "line" , ( data )  =>  {      userInput . push ( data ); }); inp . on ( "close" , ()  =>  {      var   str  =  String ( userInput );      function   wordsReverser ( str ) {          return   str . split ( "" ). reverse (). join ( "" ). split ( " " ). reverse (). join ( " " )     }      var   ans  =  wordsReverser ( str )      console . log ( ans ) }) ...