i
PubMatic
Filter interviews by
I applied via LinkedIn and was interviewed in May 2021. There was 1 interview round.
Multiprocessing is the use of multiple processors to execute multiple tasks simultaneously. Multithreading is the use of multiple threads within a single process to execute multiple tasks simultaneously.
Multiprocessing involves the use of multiple processors or cores to execute multiple tasks simultaneously.
Multithreading involves the use of multiple threads within a single process to execute multiple tasks simultaneou...
Simulating one user profile to another can be done through user impersonation.
User impersonation can be achieved through various tools and techniques.
One way is to use a proxy server to intercept and modify the user's requests and responses.
Another way is to use a browser extension or plugin that allows you to switch between user profiles.
You can also use a testing tool like Selenium to automate the process of switchin...
bashrc and .profile are configuration files for the Bash shell in Linux/Unix systems.
bashrc is executed for every new interactive shell session
.profile is executed only once during login
They contain environment variables, aliases, and other shell settings
bashrc is typically used for user-specific settings, while .profile is system-wide
Examples: setting PATH variable, defining aliases, setting prompt
Code using multithreading to scan 3 log files for different patterns and write matches in o/p file with low memory footprint.
Use Python's threading module to create multiple threads for each log file
Use regex to search for patterns in each log file
Write matches to output file using a thread-safe queue
Use a memory-efficient data structure like deque to store log file lines
Code to run as a service to scan CPU/memory every 30 sec and calculate min, max, avg and moving avg of last 300 sec.
Use a loop to run the code every 30 sec
Use psutil library to get CPU/memory usage
Store the values in a list and calculate min, max, avg and moving avg using numpy library
Use threading to run the code in the background as a service
I applied via Naukri.com and was interviewed in Oct 2024. There were 2 interview rounds.
Fluent wait in Selenium is used for handling dynamic elements and synchronization issues.
Fluent wait is used to wait for a condition to be true before proceeding with the next steps in Selenium automation scripts.
It provides more flexibility in defining wait conditions compared to implicit or explicit waits.
Fluent wait can be used to wait for a specific element to be visible, clickable, or any other custom condition.
It...
To get all the links available on a page, you can use web scraping techniques.
Use a web scraping tool like BeautifulSoup in Python or Selenium to extract all the links from the page
Identify the HTML elements that contain the links, such as tags with href attributes
Iterate through the elements to extract the URLs and store them in a list
I applied via Approached by Company and was interviewed in Jul 2024. There was 1 interview round.
Count pairs in an array that sum up to a target value.
Iterate through the array and store the frequency of each element in a hashmap.
For each element, check if the difference between the target and the element exists in the hashmap.
Increment the count of pairs if the difference is found in the hashmap.
Binary search can be used to solve moderate problems of arrays that are first increasing and then decreasing.
Use binary search to find the peak element in the array, which marks the transition from increasing to decreasing.
Divide the array into two parts based on the peak element and apply binary search on each part separately.
Handle edge cases such as when the array is strictly increasing or strictly decreasing.
Exampl
Design a system for a web surfing utility
Use a web crawler to gather data from websites
Implement a search engine to retrieve relevant information
Utilize a recommendation system to suggest related content
Include user authentication and personalized settings
Ensure scalability and performance for handling large amounts of data
Find the smallest subarray in an array that has a given target sum.
Use a sliding window approach to find the subarray with the target sum.
Keep track of the current sum of elements in the window and adjust the window size accordingly.
Start with a window of size 1 and expand it until the sum is greater than or equal to the target sum.
Shrink the window from the left side while updating the smallest subarray length until t
PubMatic interview questions for popular designations
Basic string manipulation and general DSA questions
Get interview-ready with Top PubMatic Interview Questions
Java code to find duplicates in an array of strings
Iterate through the array and use a HashSet to keep track of unique elements
If an element is already in the HashSet, it is a duplicate
Print or store the duplicates as needed
Java code to reverse a string without using split method
Create a char array from the input string
Use two pointers to swap characters from start and end of the array
Continue swapping until the pointers meet in the middle
I applied via LinkedIn and was interviewed in Feb 2024. There were 2 interview rounds.
The longest path from one node to another in a tree is the maximum number of edges that must be traversed to reach from one node to another.
The longest path in a tree is also known as the diameter of the tree.
The diameter of a tree can be found by first finding the farthest leaf node from any arbitrary node, and then finding the farthest leaf node from that leaf node.
The sum of the distances from the root to the farthe...
I applied via Approached by Company and was interviewed in Feb 2024. There were 3 interview rounds.
Count the number of digits in a given string
Iterate through each character in the string
Check if the character is a digit using isdigit() function
Increment a counter if the character is a digit
Return the final count of digits
Apache Kafka is a distributed streaming platform used for building real-time data pipelines and streaming applications.
Apache Kafka is designed to handle high-throughput, fault-tolerant, and scalable real-time data streams.
It allows for the publishing and subscribing to streams of records, similar to a message queue.
Kafka is often used for log aggregation, stream processing, event sourcing, and real-time analytics.
It p...
I applied via Naukri.com and was interviewed in Feb 2024. There was 1 interview round.
Code to validate all use cases for an IP address input string and output yes or no.
Use regular expressions to match the input string against the valid IP address pattern.
Check for valid ranges of each octet (0-255) and proper formatting (4 octets separated by periods).
Handle edge cases like leading zeros, extra spaces, and invalid characters.
Return 'yes' if the input string is a valid IP address, otherwise return 'no'.
Find common values in two sorted integer arrays efficiently.
Use two pointers approach to iterate through both arrays simultaneously.
If the current values are equal, add it to the result and move both pointers forward.
If the current values are not equal, move the pointer of the array with the smaller value forward.
I applied via LinkedIn and was interviewed in Oct 2023. There were 3 interview rounds.
Detecting a loop in a linked list
Use two pointers, one moving at double the speed of the other
If there is a loop, the two pointers will eventually meet
Use Floyd's Cycle Detection Algorithm for efficient solution
I applied via LinkedIn and was interviewed in Mar 2024. There were 2 interview rounds.
LRU Cache impl, 3 threads....print 123123123..in sequence
Role & Responsibilities, Virtual Memory, IPC/Shared Memory, Stack/Heap, Reverse a number with sign, Memory Corruption, Memory pool of 1GB - how you will break it in chunks and provide on demand, GDB commands, Valgrind, C++11 features, Segmentaion fault - who generates core dump.
Top trending discussions
The duration of PubMatic interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 23 interviews
Interview experience
based on 118 reviews
Rating in categories
Softwaretest Engineer
102
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Engineer
80
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
72
salaries
| ₹0 L/yr - ₹0 L/yr |
Principal Software Engineer
47
salaries
| ₹0 L/yr - ₹0 L/yr |
QA Engineer
27
salaries
| ₹0 L/yr - ₹0 L/yr |
InMobi
Komli Media
Adcolony
Affle