Uses Scala, Slick and H2 Database Engine
Given a string
- return the most occurring character
- return the least occurring character
- count of occurrence of all characters
sample String: hluwriwepo;lgjhs,jgcksdfol'w;ieuhf ujweyhflvsdlv';.,asnncbsnbcnbsadnbvhwgdsndm
StudentCourse --StudentId, StudentName ,CourseId, StartDate,EndDate Course -- CourseId,CourseName,CourseDuration,Credit,Cost
APIs:
- List all available courses
- Enroll a Student in a course and don’t enroll more than 30 students in any course
- Get the Course which has Maximum enrollment
- Get the number of courses each Student is enrolled at the sametime
There is an executable fat jar available in repo at target\scala-2.12\ScalaSolutions-assembly-0.1.jar, which can be run as below
java -jar ScalaSolutions-assembly-0.1.jar