Skip to content

Instantly share code, notes, and snippets.

View naveen21553's full-sized avatar
💭
Machine Learning | Deep Learning | Cloud Computing

Naveen Jangid naveen21553

💭
Machine Learning | Deep Learning | Cloud Computing
  • Jaipur
View GitHub Profile
@naveen21553
naveen21553 / Problem.txt
Last active March 12, 2019 05:19
This java file is solution to Core Java Assignment by UpGrad
In this problem, there are types of events: ENTER (a student enters the queue) or SERVED.
A unique token is assigned to any student entering the queue. The queue serves the students
based on the following criteria:
The student having the highest Cumulative Grade Point Average (CGPA) is served first.
Any students having the same CGPA will be served by name in ascending case-sensitive alphabetical order.
Any students having the same CGPA and name will be served in ascending token order.
Given a sequence of events, print the names of students who are yet to be served(based on above criteria).
If the queue is empty, print EMPTY.
Input Format