If a person recording 3 things daily like brush(B),going office(O) and sleeping(S) record manner is given below:- | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

If a person recording 3 things daily like brush(B),going office(O) and sleeping(S) record manner is given below:-

the record in a manner like BOS or may be BS or BBOS or BBB etc but some cases or not allowed like SB or OBB etc those which are not in manner so we have to take integer N number of test cases and the function will return yes or no for the given testcases one is here like:- 5 BOS BS BBB SB OBBB output:- yes yes yes no no this question has to be done in java

15th Jan 2018, 12:42 PM
Nikhil Kohli
Nikhil Kohli - avatar
2 Answers
+ 1
yeah your right i delete the python 3 tag
16th Jan 2018, 3:24 PM
Nikhil Kohli
Nikhil Kohli - avatar
0
Erase the "python3" tag. You are saying this has to be done in Java.
15th Jan 2018, 2:30 PM
Sebastián Zapata
Sebastián Zapata - avatar