i am no getting the full question just i had one screenshot that is this full question is on hackerrank you can check question on hackerrank but i not able to access the question please provide the solution
Info C# Autocomplete Ready Ⓒ (BETA) Can't read the text? Switch theme 1 > using System.CodeDom.Compiler; 16 class Result 4. Group Division 17 { 18 19 /. 20 • Complete the groupDivision' function below. 21 22 • The function is expected to return an INTEGER. 23 • The function accepts following parameters: 24 A university has admitted a group of n students with varying skill levels. To better accommodate the students, the university has decided to create classes tailored to the skill levels. A placement examination will return a skill level that will be used to group the students, where levels represents the skill level of student & All students within a group must have a skill level within maxSpread, a specified range of one another. Determine the minimum number of classes that must be formed. . 1. INTEGER ARRAY levels 25 . 2. INTEGER maxSpread "/ 26 AT Test Results Custom Input Example n=5 Compiled successfully. All available test cases passed levels = [1, 4, 7, 3, 4] maxSpread=2 Test case 0 Input (stdin) The students in any group must be within maxSpread-2 levels of each other. In this case, one optimal grouping is (1, 3), (4, 4), and (7). Another possible grouping is (1), (3, 4, 4), (7). There is no way to form fewer than 3 groups. Test case 1 1 2 Test case 2 3 Function Description Complete the function groupDivision in the editor below. S Test case 3 8 6 groupDivision has the following parameter(s): int levels[n]: the skill level for each student Test case 4 8 solve in java 8 in 30 minutes solve in java 8 8 Run Code -0 Ⓡ Line: 16 Col: 1 Submit Run Tests Run as Custom Input | Download
Info C# Autocomplete Ready Ⓒ (BETA) Can't read the text? Switch theme 1 > using System.CodeDom.Compiler; 16 class Result
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Info C# Autocomplete Ready Ⓒ (BETA) Can't read the text? Switch theme 1 > using System.CodeDom.Compiler; 16 class Result
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!