Document-centered workflows can consume plenty of your time and effort, no matter if you do them routinely or only sometimes. It doesn’t have to be. In reality, it’s so easy to inject your workflows with additional efficiency and structure if you engage the right solution - DocHub. Advanced enough to tackle any document-connected task, our software lets you modify text, photos, comments, collaborate on documents with other users, generate fillable forms from scratch or templates, and electronically sign them. We even protect your information with industry-leading security and data protection certifications.
You can access DocHub editor from any place or system. Enjoy spending more time on creative and strategic work, and forget about monotonous editing. Give DocHub a try right now and watch your Concert Ticket workflow transform!
[Music] hello today we will be solving this problem its called concert ticket so there are n concert tickets available each with a certain price then end customers arrive one after another each customer announces the maximum price he or she is willing to pay for a ticket and after this they will get a ticket with the nearest possible price such that it does not exceed the maximum price so for each customer we need to find the nearest possible price that is still possible so for example here four con comes first and we need to find the ticket value that is closest to 4 and that does not exceed 4 and the answer is 3. here for 8 the closest value to 8 that does not exceed 8 is 8 thats why the answer here is a and for 3 then the closest value to 3 would be this 3 but we already gave it to 4 so there are no other values that are less than or equal to three thats why the answer is negative one so lets go ahead to the drawing board and think about this problem so lets come lets start wi