LINKEDIN | SDE Intern | INDIA
Anonymous User
1531

Hey,

I appered to the LinkedIn off campus interview, I successfully completed my round 1 which was a coding test we had 3 questions which was based on ds/algo and another section which was optional but for the students aiming at the front end side.

I attempted both the sections and got shortlisted to the next round.

Next round was UI specific,
where i was asked questions on css html and javascript

and then the next round was coding
where i had to solve two problem statements in js

  1. given a string and a integer n return n times of the string
    eg: input: str => "apple" x => 2
    output => appleapple

  2. add alert message when we press on the div element which returns the index of the div
    eg: if there are 5 divs if a person click on the second div give a alert telling clicked on second div

     I was rejected and i think the reason was that I had to solve the first problem in terms of binary which I didnt know how to do
     He asked me if i can solve it in O(log n)
     It will be helpful if anyone of u who is reading, post a solution.
     
     
     
Comments (3)