i
Jio Haptik
Filter interviews by
Clear (1)
I was interviewed in Jan 2025.
A class is a blueprint for creating objects in object-oriented programming. An object is an instance of a class.
A class defines the properties and behaviors of objects.
An object is a specific instance of a class.
Classes can be used to create multiple objects with similar characteristics.
Objects can interact with each other by calling methods defined in their class.
Example: Class 'Car' can have properties like 'color' a...
Objects in programming are created by defining a class and instantiating it to create instances of that class.
Define a class with attributes and methods
Instantiate the class to create an object
Access and manipulate object properties and methods
Singleton Design Pattern ensures a class has only one instance and provides a global point of access to it.
Ensures a class has only one instance by providing a global access point to it
Commonly used in scenarios where only one instance of a class is needed, such as database connections or configuration settings
Implemented by making the constructor private and providing a static method to access the single instance
SQL is a relational database management system that uses structured query language, while NoSQL is a non-relational database system that does not use SQL.
SQL databases are table-based and have a predefined schema, while NoSQL databases are document-based, key-value pairs, graph databases, or wide-column stores.
SQL databases are vertically scalable, while NoSQL databases are horizontally scalable.
SQL databases are good ...
Columnar databases store data in columns rather than rows, allowing for faster query performance and better compression.
Data is stored in columns rather than rows
Better suited for analytical queries
Allows for better compression and faster query performance
Examples include Amazon Redshift, Google BigQuery
Pub-Sub model is a messaging pattern where senders (publishers) of messages do not program the messages to be sent directly to specific receivers (subscribers).
Publishers send messages to a central topic or channel
Subscribers subscribe to the topic or channel to receive messages
Decouples senders and receivers, allowing for scalability and flexibility
Top trending discussions
I applied via Campus Placement
I applied via Job lever and was interviewed before Sep 2021. There were 2 interview rounds.
Easy leetcode code 2 questions , HTML5 css javascript simple screen design
Algorithms for manipulating arrays and strings in coding
Use sorting algorithms like quicksort and mergesort for arrays
Use string manipulation functions like substring and replace for strings
Use dynamic programming for optimizing solutions to array and string problems
Designing a large scale Ad Server
Use distributed systems for scalability
Implement caching for faster ad delivery
Ensure high availability and fault tolerance
Use real-time bidding for efficient ad placement
Implement fraud detection mechanisms
Ensure compliance with privacy regulations
Maximum sub sequence sum in an array
Use Kadane's algorithm
Initialize max_so_far and max_ending_here to 0
Iterate through the array and update max_ending_here and max_so_far
Return max_so_far
Endianness refers to the byte order of a system. It determines how multi-byte data types are stored in memory.
Little-endian systems store the least significant byte first, while big-endian systems store the most significant byte first.
Endianness can affect the way data is transmitted between systems.
To determine the endianness of a system, you can use the byte order mark (BOM) or write a test program that checks the by...
Sort an array of 0's and 1's only.
Use two pointers, one at the beginning and one at the end of the array.
Swap 0's from the beginning with 1's from the end until the pointers meet.
Alternatively, use a counting sort algorithm to count the number of 0's and 1's and then reconstruct the array.
Heaps are data structures used to efficiently find the maximum or minimum element in a collection.
Max heap: parent nodes are always greater than or equal to child nodes
Min heap: parent nodes are always smaller than or equal to child nodes
Heaps are commonly used in priority queues and sorting algorithms
Heap operations include insert, delete, and extract max/min
Example: An array [3, 8, 2, 5, 1, 4, 6] can be represented a
Find 3 numbers in an array where a+b=c.
Loop through the array and check for all possible combinations of a and b.
Use a hash table to store the values of a and b, and check if c is present in the hash table.
Sort the array and use two pointers to find a and b, and then check if their sum equals c.
I applied via Campus Placement
I am an avid traveler and have visited over 20 countries
I love experiencing new cultures and trying new foods
I have backpacked through Europe and Asia
I have volunteered in orphanages in Cambodia and Nepal
Mobile advertising platform
Adtech
Mobile marketing
App monetization
Regex for email validation
Start with a string of characters followed by @ symbol
Followed by a string of characters and a period
End with a string of characters with a length of 2-6 characters
Allow for optional subdomains separated by periods
Disallow special characters except for . and _ in username
Print prime numbers in a given range and optimize the solution.
Use Sieve of Eratosthenes algorithm to generate prime numbers efficiently
Start with a boolean array of size n+1, mark all as true
Loop through the array and mark all multiples of each prime as false
Print all the indexes that are still marked as true
Find angle between hour and minute hand in a clock given the time.
Calculate the angle made by the hour hand with respect to 12 o'clock position
Calculate the angle made by the minute hand with respect to 12 o'clock position
Find the difference between the two angles and take the absolute value
If the angle is greater than 180 degrees, subtract it from 360 degrees to get the smaller angle
To un-hash a string, use a reverse algorithm to convert the hash back to the original string.
Create a reverse algorithm that takes the hash as input and outputs the original string
Use the same logic as the hash function but in reverse order
If the hash function used a specific algorithm, use the inverse of that algorithm to un-hash the string
I applied via Campus Placement and was interviewed before Jan 2023. There were 4 interview rounds.
There were 3 coding questions, all of them were medium level difficulty. Typically people who solved 2 questions correctly were shortlisted for the interview rounds.
Prints a zigzag matrix
Create a 2D array with the desired number of rows and columns
Use nested loops to iterate through the array
Alternate the direction of iteration to create the zigzag pattern
Print the elements of the array in the desired format
Given an array of strings, find a subset that adds up to a target sum.
Use a recursive approach to explore all possible subsets
Start with an empty subset and add elements one by one
Keep track of the current sum and check if it matches the target sum
If the sum exceeds the target, backtrack and remove elements
Return the subset if found, otherwise return an empty subset
I applied via Referral and was interviewed before Apr 2022. There were 3 interview rounds.
45 mins, Amcat , Basic to advance question
based on 1 interview
Interview experience
Customer Success Manager
37
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Analyst
22
salaries
| ₹0 L/yr - ₹0 L/yr |
Analyst
20
salaries
| ₹0 L/yr - ₹0 L/yr |
Software Engineer
13
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Product Manager
9
salaries
| ₹0 L/yr - ₹0 L/yr |
Freshworks
InMobi
Swiggy
Ola Cabs