MediaIQ Interview Experience for SDE-II

Round 1: HackerRank
1)Given a singlyLinkedList with binary digits n each node. Find decimal value of the binary string generated by combining all nodes.

Example: input: 1->0->1->1->0 output: 22

2) Given ‘n’ consecutive number from 1. Given value k, find maximum sum generated from the consecutive numbers such that their intermediate sum should not be k, and values are summed from the left to right.1<n<10^9 & 1<k<10^5.

Write your Interview Experience or mail it to

My Personal Notes arrow_drop_up

If you like GeeksforGeeks and would like to contribute, you can also write an article using or mail your article to See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

Article Tags :

Be the First to upvote.

Please write to us at to report any issue with the above content.