Media.net Interview Experience for SDE-1 - GeeksforGeeks

04 May, 2021
Round 1:
Given a string of 1’s and 2’s, standing at index ‘i’, you can move exactly two steps forward or backward if s[i] == 2, else you can move one step forward or backward if s[i] ==1.A string is called a good string if you can reach the end of the string by moving every index exactly once.Now, you have been given two Strings A and B (not necessarily good), you have to return the number of possible sub-sequences of swaps available, such that both the strings become good.Swap means you can swap A[i] with B[i].Example:A = 2211
B = 1111
ans = 8
Given a string of 1’s and 2’s, standing at index ‘i’, you can move exactly two steps forward or backward if s[i] == 2, else you can move one step forward or backward if s[i] ==1.A string is called a good string if you can reach the end of the string by moving every index exactly once.Now, you have been given two Strings A and B (not necessarily good), you have to return the number of possible sub-sequences of swaps available, such that both the strings become good.Swap means you can swap A[i] with B[i].Example:A = 2211
B = 1111
ans = 8
A string is called a good string if you can reach the end of the string by moving every index exactly once.
Now, you have been given two Strings A and B (not necessarily good), you have to return the number of possible sub-sequences of swaps available, such that both the strings become good.
Swap means you can swap A[i] with B[i].
Example:
A = 2211
B = 1111
ans = 8
Round 2:
Maximum square sub-matrix in a matrix having sum equal to ‘K’
Maximum square sub-matrix in a matrix having sum equal to ‘K’
Round 3:
There is a stream of URLs coming with their time stamps. Create a dashboard that will return K’s most frequent URLs in the last one hour.Given a rectangle with one edge of a diagonal at (0,0) and another diagonal at (l, b). The rectangle has N points representing the center of circles of radius R. You are at (0,0) and can move in any direction, with any distance, and at any angle, provided you can’t move out the rectangle, neither you can touch any of the circles, can you move to the point (l, b). (Circles can overlap, and they can have some area outside the rectangle)IndexingDifference between Mutex and Semaphore
There is a stream of URLs coming with their time stamps. Create a dashboard that will return K’s most frequent URLs in the last one hour.
Given a rectangle with one edge of a diagonal at (0,0) and another diagonal at (l, b). The rectangle has N points representing the center of circles of radius R. You are at (0,0) and can move in any direction, with any distance, and at any angle, provided you can’t move out the rectangle, neither you can touch any of the circles, can you move to the point (l, b). (Circles can overlap, and they can have some area outside the rectangle)
Indexing
Difference between Mutex and Semaphore
Marketing
media.net
Interview Experiences
Writing code in comment?
Please use ide.geeksforgeeks.org,
generate link and share the link here.
Comments
Old Comments
Amazon Interview Experience for SDE-1 (On-Campus)
Amazon Interview Experience for SDE-1
Difference between ANN, CNN and RNN
Amazon Interview Experience for SDE1 (8 Months Experienced) 2022
Amazon Interview Experience for SDE-1
Amazon Interview Experience (Off-Campus) 2022
Amazon Interview Experience for SDE-1(Off-Campus)
Microsoft Interview Experience for Internship (Via Engage)
Zoho Interview | Set 1 (On-Campus)
Microsoft Interview Experience for SDE-1 (Hyderabad)