You are given a multi-set S of N integers, and an integer K. You want to find the maximum value of minimal excluded non-negative integer (MEX) of the multi-set given that you are allowed to add at most any K integers to the ...
SIKSHAPATH Latest Questions
1. Create a class of SalesPersons as a thread that will display five salespersons names. 2. Create a class as Days as other Thread that has an array of seven days. 3. Call the instance of SalesPersons in Days and start both ...
Case Study: Write a top-level program for creating a GRAPH instance and running both Prim’s and Kruskal’s algorithms on it, and printing out the respective MSTs returned, along with the total cost and runtime (in milliseconds) for each one. The input ...
Create a student class object array of size four having attributes name, designation and salary. Let the student class have appropriate getter/setters methods for accessing these attributes. Initialize these attributes through the setter methods. Store this object into a file ...
1 Briefly explain ByteArrayInputStream and ByteArrayOutputStream. 2Briefly explain CharArrayReader and CharArrayWriter 3Explain serialization and Deserialization using Serializable interface. 4What is common and how do the following streams differ: InputStream, Reader? 5Create two threads and assign names ‘Scooby’ and ‘Shaggy’ to ...