Visit our website for premium courses: https://apnicoding.in/ Telegram for free notes⤵️ https://t.me/apnicoding presenting by @apni.coding
*–––––––––––––––––––––––––––––––––*
Download pdf/code:- https://drive.google.com/file/d/1bUTuuq3xyS1LCoJdhnCW6qunJQSlfUj9/view?usp=sharing
Question: You are given S, a sequence of n integers i.e. S = s1, s2, ..., sn. Compute if it is possible to split S into two parts : s1, s2, ..., si and si+1, si+2, ….., sn in such a way that the first part is strictly decreasing while the second is strictly increasing one.
Note : We say that x is strictly larger than y when x is grather than y.
So, a strictly increasing sequence can be 1 4 8. However, 1 4 4 is NOT a strictly increasing sequence.
That is, in the sequence if numbers are decreasing, they can start increasing at one point. Thereafter, they cannot decrease at any point further.
Sequence made up of only increasing numbers or only decreasing numbers is a valid sequence. So, in both the cases, print true.
You just need to print true/false. No need to split the sequence.
*–––––––––––––––––––––––––––––––––*
Social Media Link:-
Instagram⤵️ https://www.instagram.com/apni.coding/
Twitter⤵️ https://twitter.com/vivek_viku72?s=08
Facebook ⤵️ https://www.facebook.com/idealcomputerinstitute1
2nd YouTube⤵️ https://www.youtube.com/c/IdealComputerInstitute
*–––––––––––––––––––––––––––––––––*
Business Enquiry:- Vivek Kumar
☎️ Contact :-+91-7667695703
💌 Gmail:-apnicoding72@gmail.com
*–––––––––––––––––––––––––––––––––*
Important Playlist For You:-
Java Programming Question:- https://youtube.com/playlist?list=PL5dkTTGqCuTNMzRWo-JcpHyvnRkccI3a-&feature=shares
*–––––––––––––––––––––––––––––––––*
Disclaimer : Some contents are used for educational purpose under fair use. Copyright Disclaimer Under Section 107 of the Copyright Act 1976, allowance is made for "fair use" for purposes such as criticism, comment, news reporting, teaching, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance if favor of fair use. All credit for copyright material used in video goes to respected owner.
*–––––––––––––––––––––––––––––––––*
► Thanks For Watching Our Channel.
► Happy Coding!
► Happy Learning!
► Have A Nice Day ...
► Subscribe For More Updates ...
*–––––––––––––––––––––––––––––––––*
#apnicoding #javabasicinterviewquestions #javabasicconcepts #javabasicprogramswithexplanation #javabasicprograms #javabasicinterviewquestionsandanswersforfreshers #javabaisc #java #coder #checknumbersequence #checknumbersequencinjava
Best YouTube to MP3 Converter
Tube MP3 is the leading converter which allows you to convert YouTube videos to MP3 files with just a few clicks. It supports high quality MP3 up to 320kbps. Enjoy listening to your favorite YouTube songs in offline mode.