6. Company Users
Здравейте, колеги!
https://pastebin.com/A2fA94fb
На пръв поглед всичко това решение сякаш е ок и нулевите тестове минават, но в judge не взимам никакви точки и получавам съобщение:
The process executing your submission for this test may not have received the output successfully. Please try to submit again the same solution. If the result does not change, then search the error in the submission itself.
Дали не взимам никакви точки, защото трябва да използвам други методи???
Write a function, which keeps the information about companies and their employees.
You will receive an array of strings containing the company name and employee's id. Add each employee to the given company. Keep in mind that a company cannot have two employees with the same id.
When you finish reading data, order the companies by their name in ascending order.
Print the company name and each employee's id in the following format:
{companyName}
-- {id1}
-- {id2}
-- {idN}
[ 'SoftUni -> AA12345', 'SoftUni -> BB12345', 'Microsoft -> CC12345', 'HP -> BB12345' ] |
HP -- BB12345 Microsoft -- CC12345 SoftUni -- AA12345 -- BB12345 |
|
[ 'SoftUni -> AA12345', 'SoftUni -> CC12344', 'Lenovo -> XX23456', 'SoftUni -> AA12345', 'Movement -> DD11111' ] |
Lenovo -- XX23456 Movement -- DD11111 SoftUni -- AA12345 -- CC12344 |
Доста време ми отне да направя това решение и ще съм много благодарна ако някой се включи!
Много благодаря!