Shopee/Garena/SeaGroup Online Assessment Questions

Anonymous User
14540
Feb 16, 2020
Feb 16, 2020
  1. https://www.geeksforgeeks.org/rearrange-a-given-linked-list-in-place/
  2. https://www.geeksforgeeks.org/find-n-th-element-series-2-digits-4-7-allowed/

They use glider.ai as the interface. Please practice beforehand on this.

For people submitting the code in java, the linked list is a string , example :
1-2-3-4-5 is a string, so create an array by splitting the string at '-' . See if you can use a string manipulation algorithm , as you need to create the linked list otherwise
Also the test cases are weak, my code was failing for the odd length linked list ideally, but they did not have a test case for that, I entered my own custom input and tested this.
The interface fucntions funnily sometimes. It kept on giving me a TLe without any cause and worked fine after a while. It also gave me TLE when I decided to add comments towards the end, I removed them so as to not mess with my working code.

Comments (5)