GoComet
10+ OJ Commerce Interview Questions and Answers
Q1. Subarray With Given Sum Problem Statement
Given an array ARR
of N integers and an integer S, determine if there exists a contiguous subarray within the array with a sum equal to S. If such a subarray exists, re...read more
Q2. you have 30 feet long wall. a bug climb 3 feet and fall 1 feet in 1 hours. total number of hours it take to climb tree
A bug climbs 2 feet in 1 hour and falls 1 feet. How many hours to climb a 30 feet wall?
The bug climbs 2 feet in 1 hour and falls 1 feet.
The wall is 30 feet long.
Calculate how many hours it takes for the bug to climb the entire wall.
Q3. Most of our website traffic comes from India while our target geography is the USA. How will you bring US traffic?
I will use targeted advertising, SEO optimization, and social media marketing to attract US traffic.
Conduct keyword research and optimize website content for US audience
Create targeted ads on social media platforms like Facebook and Instagram
Collaborate with US-based influencers to promote the brand
Utilize Google AdWords to target US-based search queries
Participate in relevant online communities and forums to increase brand visibility
Create localized content for US audience
Pa...read more
Q4. Remove Consecutive Duplicates Problem Statement
Given a string S, your task is to recursively remove all consecutive duplicate characters from the string.
Input:
String S
Output:
Output string
Constraints:
- 1 <...read more
Q5. What how internal structure of internet works
The internal structure of the internet consists of interconnected networks of computers and servers that communicate through protocols.
The internet is made up of a vast network of interconnected devices such as routers, switches, and servers.
Data is transmitted across the internet using protocols like TCP/IP, HTTP, and DNS.
Internet Service Providers (ISPs) play a crucial role in connecting users to the internet and routing data between networks.
Domain Name System (DNS) transl...read more
Q6. You have 3 letter water can and 5 litter water can measure 4 litter water can
The 3 liter and 5 liter water cans can be used to measure 4 liters of water.
Fill the 3 liter can and pour it into the 5 liter can.
Fill the 3 liter can again and pour it into the 5 liter can until it is full.
The remaining water in the 3 liter can is 1 liter.
Pour out the water from the 5 liter can.
Pour the 1 liter of water from the 3 liter can into the 5 liter can.
Fill the 3 liter can again and pour it into the 5 liter can until it is full.
The 5 liter can now contains 4 liters ...read more
Q7. You have two containers of 5 litres and 3 litres, you need 4 litres of water.
Fill 3L container, pour into 5L container, fill 3L again, pour into 5L until full. 1L will remain in 3L container.
Fill 3L container
Pour into 5L container
Fill 3L again
Pour into 5L until full
1L will remain in 3L container
Q8. What is ip forwarding
IP forwarding is the process of routing data packets from one network to another network.
IP forwarding is a feature that allows a router to send packets destined for a remote network to the next hop router.
It involves examining the destination IP address of a packet and determining the best path to forward it.
IP forwarding is essential for enabling communication between different networks in a larger network infrastructure.
For example, when a user in one network wants to acce...read more
Q9. Search an element in a sorted(row and column wise) matrix.
Use binary search to efficiently search for an element in a sorted matrix.
Start from the top right corner of the matrix
If the target is greater than the current element, move down
If the target is less than the current element, move left
Repeat until the target is found or all elements are checked
Q10. what is dsa, gdsc and sprinthacks
DSA stands for Data Structures and Algorithms, GDSC stands for Google Developer Student Clubs, and Sprinthacks is a hackathon event.
DSA is a fundamental concept in computer science that involves organizing and storing data efficiently.
GDSC is a student-led community sponsored by Google to help students grow their skills in technology.
Sprinthacks is a hackathon event where participants work in teams to create innovative projects within a limited time frame.
Q11. One Puzzle to detect Defective Box
Use binary search to detect defective box among a set of boxes.
Implement binary search algorithm to efficiently find the defective box.
Divide the set of boxes into two halves and check for defects in each half.
Continue dividing and checking until the defective box is found.
Example: [1, 2, 3, 4, 5, 6, 7, 8, 9], where box 5 is defective.
Q12. How many swift cars in mumbai?
The exact number of Swift cars in Mumbai is not available, but it is a popular choice among car owners in the city.
Swift cars are a common sight on the roads of Mumbai.
Maruti Suzuki, the manufacturer of Swift cars, has a strong presence in the city.
The number of Swift cars in Mumbai is constantly changing due to sales and purchases.
One can see multiple Swift cars in popular areas like Bandra, Andheri, and South Mumbai.
Q13. how you start coding
I start coding by understanding the requirements, planning the structure, writing code, testing, and debugging.
Understand the requirements and goals of the project
Plan the structure and architecture of the code
Write the code following best practices and standards
Test the code to ensure it functions correctly
Debug any issues that arise during testing
Q14. Implement MinStack?
MinStack is a data structure that supports push, pop, top, and retrieving the minimum element in constant time.
Create a stack to store the elements and another stack to store the minimum values encountered so far.
When pushing an element, check if it is smaller than the current minimum. If so, push it onto the minimum stack.
When popping an element, check if it is the current minimum. If so, pop from the minimum stack as well.
Top operation returns the top element of the stack.
G...read more
Top HR Questions asked in OJ Commerce
Interview Process at OJ Commerce
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month