Upload Button Icon Add office photos
Engaged Employer

i

This company page is being actively managed by OLX Team. If you also belong to the team, you can get access from here

OLX Verified Tick

Compare button icon Compare button icon Compare

Filter interviews by

OLX Software Developer Interview Questions and Answers

Updated 11 Aug 2022

7 Interview questions

A Software Developer was asked
Q. Given an array of the first n numbers with one number missing, how do you find the missing number?
Ans. 

To find missing number in an array of first n numbers.

  • Calculate the sum of first n numbers using formula n*(n+1)/2

  • Calculate the sum of given array using loop

  • Subtract the sum of array from sum of first n numbers to get the missing number

A Software Developer was asked
Q. Write an SQL query to retrieve all unread messages when a user signs in.
Ans. 

SQL query to retrieve all unread messages upon user sign in

  • Use a JOIN statement to combine the messages and user tables

  • Filter the results to only show messages that have not been read by the user

  • Use the user's sign in information to identify which messages are unread

Software Developer Interview Questions Asked at Other Companies

asked in Amazon
Q1. Maximum Subarray Sum Problem Statement Given an array of integers ... read more
asked in Rakuten
Q2. Merge Two Sorted Arrays Problem Statement Given two sorted intege ... read more
asked in Amazon
Q3. Minimum Number of Platforms Needed Problem Statement You are give ... read more
asked in Cognizant
Q4. Nth Fibonacci Number Problem Statement Calculate the Nth term in ... read more
asked in PhonePe
Q5. Form a Triangle Problem Statement You are given an array of integ ... read more
A Software Developer was asked
Q. What is the difference between include_once and require_once?
Ans. 

include_once and require_once are PHP functions used to include files. The difference is in how they handle errors.

  • include_once will only include the file once, and will not throw a fatal error if the file is not found

  • require_once will also only include the file once, but will throw a fatal error if the file is not found

  • Both functions are used to include files that contain functions or variables that are needed in...

A Software Developer was asked
Q. Design a database schema for a chat application where users can send messages to individuals or groups.
Ans. 

Design a database schema for a chat application with individual and group messaging.

  • Create a 'users' table with unique user IDs

  • Create a 'messages' table with message IDs, sender and receiver IDs, message content, and timestamp

  • Create a 'groups' table with unique group IDs and group names

  • Create a 'group_members' table with group ID and user ID to track group membership

  • Use foreign keys to link tables together

  • Consider...

A Software Developer was asked
Q. How much web traffic does your site receive?
Ans. 

Our website receives an average of 10,000 unique visitors per day.

  • Our website has a steady flow of traffic with a consistent number of unique visitors per day.

  • We use Google Analytics to track our web traffic and analyze user behavior.

  • Our peak traffic times are during weekdays from 9am to 5pm.

  • We have noticed an increase in mobile traffic over the past year.

  • Our website's traffic is primarily driven by organic search...

A Software Developer was asked
Q. Indexes in mysql
Ans. 

Indexes in MySQL are used to improve query performance by allowing faster data retrieval.

  • Indexes are created on one or more columns of a table.

  • They work by creating a separate data structure that allows for faster data retrieval.

  • Indexes can be created using the CREATE INDEX statement.

  • Indexes can also be dropped using the DROP INDEX statement.

  • Indexes can be used to speed up SELECT, UPDATE, and DELETE statements.

  • Ind...

A Software Developer was asked
Q. Sessions vs cookie. Detailed discussion
Ans. 

Sessions and cookies are both used for maintaining user state, but sessions are server-side and cookies are client-side.

  • Sessions store user data on the server, while cookies store data on the client's browser

  • Sessions are more secure than cookies because the data is not accessible to the client

  • Cookies can be used for tracking user behavior and preferences

  • Sessions are typically used for authentication and authorizat...

Are these interview questions helpful?

OLX Software Developer Interview Experiences

2 interviews found

I applied via LinkedIn and was interviewed in Jul 2022. There were 2 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Aptitude Test 

Q1 - array questions.
Q2 - Graph questions.
Q3 - DP questions

Interview Preparation Tips

Interview preparation tips for other job seekers - Must do medium questions on leetcode. Should be know all the data structures and algorithms. Should be know all CS fundamentals. No need to give advanced contest on codeforces.

Interview Questionnaire 

15 Questions

  • Q1. Indexes in mysql
  • Ans. 

    Indexes in MySQL are used to improve query performance by allowing faster data retrieval.

    • Indexes are created on one or more columns of a table.

    • They work by creating a separate data structure that allows for faster data retrieval.

    • Indexes can be created using the CREATE INDEX statement.

    • Indexes can also be dropped using the DROP INDEX statement.

    • Indexes can be used to speed up SELECT, UPDATE, and DELETE statements.

    • Indexes ...

  • Answered by AI
  • Q2. Difference between include_once and require_once?
  • Ans. 

    include_once and require_once are PHP functions used to include files. The difference is in how they handle errors.

    • include_once will only include the file once, and will not throw a fatal error if the file is not found

    • require_once will also only include the file once, but will throw a fatal error if the file is not found

    • Both functions are used to include files that contain functions or variables that are needed in the ...

  • Answered by AI
  • Q3. Constructor and destrutor?
  • Q4. Sessions vs cookie. Detailed discussion
  • Ans. 

    Sessions and cookies are both used for maintaining user state, but sessions are server-side and cookies are client-side.

    • Sessions store user data on the server, while cookies store data on the client's browser

    • Sessions are more secure than cookies because the data is not accessible to the client

    • Cookies can be used for tracking user behavior and preferences

    • Sessions are typically used for authentication and authorization p...

  • Answered by AI
  • Q5. Some questions on lucene, solr as it was mentioned in my resume
  • Q6. 8 ball puzzle
  • Q7. Design patterns?
  • Q8. Array of first n numbers.One number is missing.Find missing number?
  • Ans. 

    To find missing number in an array of first n numbers.

    • Calculate the sum of first n numbers using formula n*(n+1)/2

    • Calculate the sum of given array using loop

    • Subtract the sum of array from sum of first n numbers to get the missing number

  • Answered by AI
  • Q9. What is memcache. Some discussion around it
  • Q10. Design a database schema for a chat application where user can send message to an individual or in group
  • Ans. 

    Design a database schema for a chat application with individual and group messaging.

    • Create a 'users' table with unique user IDs

    • Create a 'messages' table with message IDs, sender and receiver IDs, message content, and timestamp

    • Create a 'groups' table with unique group IDs and group names

    • Create a 'group_members' table with group ID and user ID to track group membership

    • Use foreign keys to link tables together

    • Consider inde...

  • Answered by AI
  • Q11. Write sql to retrieve all unread messages when user sign in
  • Ans. 

    SQL query to retrieve all unread messages upon user sign in

    • Use a JOIN statement to combine the messages and user tables

    • Filter the results to only show messages that have not been read by the user

    • Use the user's sign in information to identify which messages are unread

  • Answered by AI
  • Q12. Why do you want to join OLX?
  • Ans. 

    I am excited to join OLX because of its innovative approach to online marketplaces and its commitment to customer satisfaction.

    • I am impressed by OLX's user-friendly platform and its ability to connect buyers and sellers from all over the world.

    • I am excited to work with a team of talented developers who are passionate about creating cutting-edge technology.

    • I believe that OLX's focus on customer satisfaction aligns with ...

  • Answered by AI
  • Q13. What difficulties have you faced
  • Ans. 

    I have faced difficulties in debugging complex code and managing project timelines.

    • Debugging complex code with multiple dependencies

    • Managing project timelines with changing requirements

    • Working with legacy code and outdated technologies

    • Collaborating with team members in different time zones

    • Dealing with unexpected bugs and errors

  • Answered by AI
  • Q14. How is the Employee hierarchy in your current organization.Whom do you report to
  • Ans. 

    I report to the Technical Lead and am part of the development team.

    • I report to the Technical Lead

    • I am part of the development team

  • Answered by AI
  • Q15. How much is the web traffic on your site etc
  • Ans. 

    Our website receives an average of 10,000 unique visitors per day.

    • Our website has a steady flow of traffic with a consistent number of unique visitors per day.

    • We use Google Analytics to track our web traffic and analyze user behavior.

    • Our peak traffic times are during weekdays from 9am to 5pm.

    • We have noticed an increase in mobile traffic over the past year.

    • Our website's traffic is primarily driven by organic search and ...

  • Answered by AI

Interview Preparation Tips

Round: Technical Interview
Experience: Round 4 with CTO :It was a normal discussion.

General Tips: I got a call through recruiter. My telephonic interview got scheduled. Overall process was very fast. It took not more than 3-4 days till I received offer letter.
Skills: Algorithm, Data structure, SQL
College Name: na

Skills evaluated in this interview

Top trending discussions

View All
Interview Tips & Stories
4d (edited)
a team lead
Why are women still asked such personal questions in interview?
I recently went for an interview… and honestly, m still trying to process what just happened. Instead of being asked about my skills, experience, or how I could add value to the company… the questions took a totally unexpected turn. The interviewer started asking things like When are you getting married? Are you engaged? And m sure, if I had said I was married, the next question would’ve been How long have you been married? What does my personal life have to do with the job m applying for? This is where I felt the gender discrimination hit hard. These types of questions are so casually thrown at women during interviews but are they ever asked to men? No one asks male candidates if they’re planning a wedding or how old their kids are. So why is it okay to ask women? Can we please stop normalising this kind of behaviour in interviews? Our careers shouldn’t be judged by our relationship status. Period.
Got a question about OLX?
Ask anonymously on communities.

Interview questions from similar companies

I appeared for an interview before Sep 2020.

Round 1 - Coding Test 

Round duration - 90 minutes
Round difficulty - Easy

This round was held during university hours and consisted of 2 coding questions.

Round 2 - Face to Face 

(1 Question)

Round duration - 120 minutes
Round difficulty - Easy

Make sure you do no cutting and are clear about the approach you'd be following. 
 

  • Q1. What is the running median of an input stream?
  • Ans. 

    Running median of an input stream is the median value of the numbers seen so far in a continuous stream of data.

    • Maintain two heaps - a max heap for the lower half of the numbers and a min heap for the upper half.

    • Keep the number of elements in the two heaps balanced or differ by at most 1.

    • If the total number of elements is odd, the median is the root of the max heap. If even, it is the average of the roots of the two he...

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI completed Electronics & Communication Engineering from TIET - Thapar Institute of Engineering And Technology. I applied for the job as SDE - 1 in HyderabadEligibility criteria 7 CGPA Amazon interview preparation:Topics to prepare for the interview - Data Structures and Algorithms, Java, Object-Oriented Programming System, System Design, Operating System.Time required to prepare for the interview - 2 MonthsInterview preparation tips for other job seekers

Prepare for company-wise interview questions according to the company in which you are applying. Try to write the code yourself and if got stuck in between then take help from the internet. I recommend you Codezen of Coding Ninjas for practicing Data Structures and Algorithms based questions.

Application resume tips for other job seekers

Be sure 100% of what you write in your resume and prepare for that before the interview what is written on resume.

Final outcome of the interviewSelected

Skills evaluated in this interview

I appeared for an interview before Jan 2021.

Round 1 - Coding Test 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Easy

Two coding questions were given in the first round to be solved in 60 minutes.

  • Q1. 

    Rearrange Array Elements Problem Statement

    Given an array A containing 'N' integers and an integer m, rearrange the elements of the array such that the differences between the array elements and m are sor...

  • Ans. 

    Rearrange array elements based on their differences from a given integer.

    • Calculate the differences between each element and the given integer.

    • Sort the elements based on their differences while maintaining the original order for elements with the same difference.

    • Implement a function to rearrange the array elements as per the given criteria.

  • Answered by AI
  • Q2. 

    Print Nodes at Distance K from a Given Node

    Given an arbitrary binary tree, a node of the tree, and an integer 'K', find all nodes that are at a distance K from the specified node, and return a list of th...

  • Ans. 

    The task is to find all nodes in a binary tree that are at a distance K from a given node.

    • Traverse the binary tree to find the given node

    • From the given node, perform a depth-first search to find all nodes at distance K

    • Use a list to store the values of the nodes at distance K

    • Return the list of values in any order

  • Answered by AI
Round 2 - Face to Face 

(4 Questions)

Round duration - 60 minutes
Round difficulty - Easy

This was a technical round with questions based on DSA, DBMS, Computer Networking and project based questions.

  • Q1. 

    Triangle of Numbers Pattern

    Ninja is tasked with printing a triangle pattern based on a given number 'N' for any test case.

    Example:

    Input:
    N = 4
    Output:
       1
    232
    34545
    4567654

    Explanation:

    The pat...

  • Ans. 

    Print a triangle pattern of numbers based on a given number 'N'.

    • Iterate through each row and print the numbers accordingly

    • Use spaces to center-align the numbers in each row

    • Increment the numbers in each row as per the pattern

  • Answered by AI
  • Q2. What is the difference between a web server and an application server?
  • Ans. 

    Web server serves static content over HTTP, while application server runs dynamic content and business logic.

    • Web server handles HTTP requests and responses, serving static content like HTML, images, and CSS.

    • Application server executes business logic, runs dynamic content, and interacts with databases.

    • Web server examples include Apache, Nginx, while application server examples include Tomcat, JBoss.

    • Web server focuses on...

  • Answered by AI
  • Q3. How does the internet work?
  • Ans. 

    The internet is a global network of interconnected computers that communicate using standardized protocols.

    • The internet is made up of a vast number of interconnected networks of computers.

    • Data is transmitted over the internet using protocols such as TCP/IP.

    • Websites are hosted on servers connected to the internet, and users access them using web browsers.

    • Internet Service Providers (ISPs) provide access to the internet f...

  • Answered by AI
  • Q4. Write a SQL query to find the nth highest salary.
  • Ans. 

    SQL query to find the nth highest salary

    • Use the 'SELECT DISTINCT' statement to get unique salary values

    • Order the salaries in descending order using 'ORDER BY' clause

    • Use 'LIMIT' and 'OFFSET' to get the nth highest salary

  • Answered by AI
Round 3 - HR 

Round duration - 30 minutes
Round difficulty - Easy

Typical HR round with behavioral problems.

Interview Preparation Tips

Professional and academic backgroundI completed Information Technology from Chitkara University. Eligibility criteriaAbove 7 CGPAInfo Edge India (Naukri.com) interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, System Design, Aptitude, OOPSTime required to prepare for the interview - 4 monthsInterview preparation tips for other job seekers

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Final outcome of the interviewSelected

Skills evaluated in this interview

I applied via Referral

Interview Questionnaire 

6 Questions

  • Q1. Design the most optimal data structures for an LRU cache
  • Q2. Convert a sorted array to balanced binary search tree
  • Ans. 

    Convert a sorted array to balanced binary search tree

    • Find the middle element of the array and make it the root of the tree

    • Recursively construct the left subtree using the left half of the array

    • Recursively construct the right subtree using the right half of the array

    • Repeat until all elements are added to the tree

  • Answered by AI
  • Q3. Reverse a singly linked list in groups of k in­place
  • Ans. 

    Reverse a singly linked list in groups of k in­place

    • Divide the linked list into groups of k nodes

    • Reverse each group of k nodes

    • Connect the reversed groups to form the final linked list

  • Answered by AI
  • Q4. Design the most optimal data structure for storing a word and its meaning. Note that a word could have multiple meanings
  • Q5. Write a recursive routine to calculate a ^ n
  • Ans. 

    A recursive routine to calculate a ^ n

    • The base case is when n is 0, in which case the result is 1

    • For any other value of n, the result is a multiplied by the result of a^(n-1)

    • The recursive function should call itself with a^(n-1) as the new input

  • Answered by AI
  • Q6. Design the most optimal data structure for a never ending stream of numbers. It should be optimized for insertion, deletion, searching, finding kth largest and kth smallest
  • Ans. 

    Design optimal data structure for never-ending stream of numbers for insertion, deletion, searching, kth largest and kth smallest.

    • Use a balanced binary search tree like AVL or Red-Black tree for efficient insertion, deletion, and searching.

    • Maintain two heaps, one for kth largest and one for kth smallest.

    • For finding kth largest, use a min heap of size k and for kth smallest, use a max heap of size k.

    • Alternatively, use a...

  • Answered by AI

Interview Preparation Tips

Skills:
College Name: NA

Skills evaluated in this interview

Interview Preparation Tips

Round: Test
Duration: 2 hours
Total Questions: 22

College Name: Jaypee University Of Information Technology, Solan

I appeared for an interview before Sep 2016.

Interview Questionnaire 

5 Questions

  • Q1. Search an element in sorted rotated array.
  • Ans. 

    Search an element in sorted rotated array.

    • Use binary search to find the pivot point where the array is rotated.

    • Divide the array into two subarrays and perform binary search on the appropriate subarray.

    • Handle the cases where the target element is at the pivot point or not present in the array.

  • Answered by AI
  • Q2. Kth largest element in an array.
  • Ans. 

    Find the Kth largest element in an array.

    • Sort the array in descending order and return the element at index K-1.

    • Use a max heap to find the Kth largest element efficiently.

    • Implement a quickselect algorithm to find the Kth largest element in linear time.

  • Answered by AI
  • Q3. Reverse a linked list in group of n element.
  • Ans. 

    Reverse a linked list in groups of n elements.

    • Divide the linked list into groups of n elements.

    • Reverse each group individually.

    • Connect the reversed groups to form the final linked list.

    • Handle cases where the number of elements is not a multiple of n.

    • Example: 1->2->3->4->5->6->7->8, n=3 -> 3->2->1->6->5->4->8->7

  • Answered by AI
  • Q4. Median of two sorted array.
  • Ans. 

    Find the median of two sorted arrays.

    • Merge the two arrays into one sorted array and find the median.

    • Use binary search to find the median in O(log(min(m, n))) time complexity.

    • Handle edge cases like empty arrays or arrays of different lengths.

  • Answered by AI
  • Q5. It was a DP question. In a matrix, I have to count number of paths from (0, 0) to (m, n) while crossing through some indexes were not allowed.
  • Ans. 

    Count number of paths from (0, 0) to (m, n) in a matrix while crossing through some indexes were not allowed.

    • Use dynamic programming to solve the problem

    • Create a 2D array to store the number of paths

    • Traverse the matrix and update the array based on the allowed paths

    • Return the value at the last index of the array

  • Answered by AI

Interview Preparation Tips

Round: Technical Interview
Experience: Interviewer was mainly focused on problem solving skill.

College Name: KIIT University

Skills evaluated in this interview

Are these interview questions helpful?

I appeared for an interview in Aug 2017.

Interview Preparation Tips

Round: Test
Experience: Platform: Hackerearth
20 MCQs with negative marking, topics included OS, DS-Algo, Networking.
2 Programming Problems.
Duration: 1 hour 30 minutes
Total Questions: 22

Round: Technical Interview
Experience: 3 DS-Algo problems were asked. Made to written codes on paper.

Round: Technical Interview
Experience: 2 DS-Algo problems were asked. Made to written codes on paper.
Few OS questions were also asked.

Skills: Data Structures and Algorithms, Operating Systems
College Name: IIT (BHU)

Software Developer Interview Questions & Answers

Amazon user image Pruthvi Perumalla

posted on 28 Aug 2015

I applied via Campus Placement

Interview Questionnaire 

4 Questions

  • Q1. Given a binary tree, build a doubly linked list for the leaves of the tree in the given order without using any extra space
  • Ans. 

    The question asks to convert the leaves of a binary tree into a doubly linked list without using extra space.

    • Traverse the binary tree in a depth-first manner

    • When a leaf node is encountered, update its left and right pointers to form the doubly linked list

    • Keep track of the previous leaf node to update its right pointer

    • Return the head of the doubly linked list

  • Answered by AI
  • Q2. Given a table m*n , find the number of ways of reaching from one corner to opposite corner, if a person can only move in two directions( towards the goal)
  • Ans. 

    Count number of ways to reach opposite corner of a m*n table moving in two directions only.

    • Use dynamic programming to solve the problem

    • The number of ways to reach a cell is the sum of the number of ways to reach the cell above it and the cell to the left of it

    • The number of ways to reach the opposite corner is the number of ways to reach the cell in the last row and last column

    • Example: For a 2*2 table, there are 2 ways ...

  • Answered by AI
  • Q3. A person can take one or two steps at a time. Find the number of ways in which n steps can be travelled
  • Ans. 

    The number of ways to travel n steps by taking one or two steps at a time.

    • This is a classic problem that can be solved using dynamic programming.

    • The number of ways to travel n steps is equal to the sum of the number of ways to travel n-1 steps and n-2 steps.

    • Use an array to store the number of ways for each step, starting with base cases for 0 and 1 steps.

    • Iterate through the array to calculate the number of ways for eac...

  • Answered by AI
  • Q4. Take a infix expression as input and print its postfix expression
  • Ans. 

    Convert infix expression to postfix expression.

    • Use a stack to keep track of operators.

    • Iterate through the infix expression and push operands to output.

    • If an operator is encountered, pop operators from stack until a lower precedence operator is found.

    • Push the operator to stack.

    • After iterating, pop remaining operators from stack and append to output.

    • Reverse the output to get postfix expression.

  • Answered by AI

Interview Preparation Tips

Round: Test
Experience: Multiple choice questions pretty much covered everything. This included details of big O notation , concepts from computer organisation etc . Be a little careful while writing outputs as there might be misleading options.
Duration: 90 minutes
Total Questions: 22

Round: Technical Interview
Experience: Building part was quite easy . Should have a little practice of writing code on paper.
Be careful about edge cases . The interviewer took it pretty seriously (things like root node should not be null)

Skills: Data Structures And Algorithms, C and one Object oriented language, Computer Organisation, Basic Aptitude topics like Combinatorics
Duration: 2 months
College Name: IIT Madras

Skills evaluated in this interview

Interview Questionnaire 

15 Questions

  • Q1. Reverse a binary search tree in such a manner so that parent child relationship maintained and left child become right child and vice versa
  • Ans. 

    Reverse a binary search tree while maintaining parent-child relationship.

    • Start by swapping the left and right child of each node recursively.

    • Use a depth-first search approach to traverse the tree.

    • Make sure to update the parent-child relationships accordingly.

  • Answered by AI
  • Q2. Find the minimum and maximum element in stack in O(1)
  • Ans. 

    To find min and max element in stack in O(1), we can use an auxiliary stack.

    • Create an auxiliary stack to keep track of the minimum and maximum elements.

    • Push the first element to both the main and auxiliary stack.

    • For each subsequent element, compare it with the top element of the auxiliary stack and push the smaller element to the auxiliary stack.

    • To get the minimum element, simply return the top element of the auxiliary...

  • Answered by AI
  • Q3. Given an array find the next minimum element in array for each element. for example if give array is 4,2,1,5,3 resultant array would be 2,1,-1,3,-1
  • Ans. 

    Given an array, find the next minimum element for each element.

    • Iterate through the array

    • For each element, compare it with the elements on its right

    • Find the minimum element greater than the current element

    • If no such element exists, assign -1

    • Build the resultant array

  • Answered by AI
  • Q4. Given two string A and B . remove each character from string A which occur in B. if a occur 2 times in B remove 2 a from A
  • Ans. 

    Remove characters from string A that appear in string B, considering their frequency in B.

    • Use a frequency counter for string B to track occurrences of each character.

    • Iterate through string A and build a new string excluding characters found in B.

    • Example: A = 'hello', B = 'l' -> Result: 'heo'.

    • Example: A = 'banana', B = 'an' -> Result: 'b'.

    • Consider edge cases like empty strings or no common characters.

  • Answered by AI
  • Q5. Find the median of input stream in minimum time complexcity.(Online algo)
  • Ans. 

    Find median of input stream in minimum time complexity using online algorithm.

    • Use two heaps, one max heap for elements smaller than current median and one min heap for elements greater than current median.

    • Maintain balance between the two heaps by ensuring that the size difference is at most 1.

    • If the size of both heaps is equal, median is the average of the top elements of both heaps. Else, median is the top element of ...

  • Answered by AI
  • Q6. Make copy of a linked list which has two pointer one point to next node and other one point to arbitrary node in linked list
  • Ans. 

    To make a copy of a linked list with two pointers, iterate through the original list and create a new node for each element.

    • Iterate through the original linked list

    • Create a new node for each element

    • Set the 'next' pointer of each new node

    • Set the 'arbitrary' pointer of each new node

  • Answered by AI
  • Q7. If u will access data from a social networking site such as Facebook . suggest some method to remove latency to access data
  • Ans. 

    Implementing caching, optimizing queries, and using CDNs can reduce latency when accessing data from social networking sites.

    • Use caching mechanisms like Redis or Memcached to store frequently accessed data.

    • Optimize database queries to reduce response time, e.g., using indexes.

    • Implement pagination to load data in chunks instead of all at once.

    • Utilize Content Delivery Networks (CDNs) to serve static assets closer to user...

  • Answered by AI
  • Q8. Given a cordinate system in which there are n points. you have to calculate the m minimum points from some origin point. Suggest a data structure for this
  • Ans. 

    Use a min-heap to efficiently find the m closest points to an origin in a coordinate system.

    • 1. Use a min-heap (priority queue) to store points based on their distance from the origin.

    • 2. Calculate the distance using the Euclidean formula: distance = sqrt((x2 - x1)^2 + (y2 - y1)^2).

    • 3. Insert points into the heap and maintain its size to m to keep only the closest points.

    • 4. Example: For points (1,2), (3,4), (5,6) and orig...

  • Answered by AI
  • Q9. Some question on hash data structure
  • Q10. Given a linked list and some no n . you have to reverse the node of linked list in pair of n. consider all test cases for this
  • Ans. 

    Reverse the nodes of a linked list in pairs of n

    • Iterate through the linked list in pairs of n

    • Reverse the nodes within each pair

    • Connect the reversed pairs together

    • Handle cases where the number of nodes is not a multiple of n

  • Answered by AI
  • Q11. Given a array where the difference between two consecutive element is one. Given a no find that no in array in minimum time complexity
  • Ans. 

    Find a number in a consecutive integer array using binary search for optimal time complexity.

    • The array is sorted and consists of consecutive integers, e.g., [1, 2, 3, 4, 5].

    • Use binary search to find the number in O(log n) time complexity.

    • Calculate the mid index and compare the middle element with the target.

    • If the target is less than the middle element, search the left half; otherwise, search the right half.

    • Example: To...

  • Answered by AI
  • Q12. How to check singly linked list is palindrome or not
  • Ans. 

    To check if a singly linked list is a palindrome, reverse the second half and compare it with the first half.

    • Traverse the linked list to find the middle node

    • Reverse the second half of the linked list

    • Compare the reversed second half with the first half to check for palindrome

  • Answered by AI
  • Q13. Given a preorder of binary tree such that in tree each node have either 0 or no childern. and each leaf node is represented by N. construct a tree from this
  • Ans. 

    Given a preorder of binary tree with leaf nodes represented by N, construct the tree.

    • Start by creating an empty stack.

    • Iterate through the preorder list.

    • If the current element is N, create a leaf node and push it onto the stack.

    • If the current element is not N, create a new node and set its left child to the top of the stack.

    • Pop the top of the stack and set it as the right child of the new node.

    • Push the new node onto the...

  • Answered by AI
  • Q14. 14. you have given a string of multiline. you have to print the maximum occupancy word in each line and if there is some capital letter in each line then print each capital letter occupancy and then smal...
  • Ans. 

    The question asks to find the maximum occupancy word in each line of a given multiline string and also count the occupancy of capital and small letters separately.

    • Split the multiline string into individual lines

    • For each line, split it into words

    • Initialize variables to store the maximum occupancy word and its count

    • Iterate through each word and count the occupancy of each letter

    • If the current word has a higher occupancy ...

  • Answered by AI
  • Q15. One question related to password matching you have given some precondition for password then user input some password then you will validate the password with each condition if any one condition failed th...
  • Ans. 

    Validate user passwords against predefined conditions to ensure security and compliance.

    • Password must be at least 8 characters long. Example: 'Password1' is valid, 'Pass' is invalid.

    • Password must contain at least one uppercase letter. Example: 'Password1' is valid, 'password1' is invalid.

    • Password must contain at least one lowercase letter. Example: 'Password1' is valid, 'PASSWORD1' is invalid.

    • Password must include at l...

  • Answered by AI

Interview Preparation Tips

College Name: NA

Skills evaluated in this interview

OLX Interview FAQs

How many rounds are there in OLX Software Developer interview?
OLX interview process usually has 2 rounds. The most common rounds in the OLX interview process are Resume Shortlist and Aptitude Test.
How to prepare for OLX Software Developer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at OLX. The most common topics and skills that interviewers at OLX expect are Agile, Computer science, Recruitment, Scrum and Automation Testing.
What are the top questions asked in OLX Software Developer interview?

Some of the top questions asked at the OLX Software Developer interview -

  1. Design a database schema for a chat application where user can send message to ...read more
  2. Write sql to retrieve all unread messages when user sign...read more
  3. How much is the web traffic on your site ...read more

Tell us how to improve this page.

OLX Software Developer Salary
based on 29 salaries
₹17.4 L/yr - ₹30 L/yr
138% more than the average Software Developer Salary in India
View more details

OLX Software Developer Reviews and Ratings

based on 3 reviews

3.5/5

Rating in categories

4.2

Skill development

4.3

Work-life balance

4.0

Salary

3.5

Job security

3.9

Company culture

3.5

Promotions

4.1

Work satisfaction

Explore 3 Reviews and Ratings
Key Account Manager
151 salaries
unlock blur

₹3.5 L/yr - ₹8 L/yr

Dealer Success Manager
132 salaries
unlock blur

₹3 L/yr - ₹6.5 L/yr

Accounts Manager
107 salaries
unlock blur

₹2.7 L/yr - ₹6.8 L/yr

Software Engineer
63 salaries
unlock blur

₹18.6 L/yr - ₹32 L/yr

Senior Accounts Manager
60 salaries
unlock blur

₹3.9 L/yr - ₹8 L/yr

Explore more salaries
Compare OLX with

Quikr

3.7
Compare

eBay

4.0
Compare

Tokopedia

4.1
Compare

Amazon

4.0
Compare
write
Share an Interview