Filter interviews by
Virtual functions are functions in a base class that can be overridden by derived classes to provide different implementations.
Virtual functions are declared in a base class and can be overridden in derived classes.
They allow polymorphism, where a pointer to a base class can invoke different derived class implementations.
Virtual functions are resolved at runtime based on the actual object type.
They are used to ach...
Adhoc string questions often test manipulation, searching, or pattern recognition skills in programming.
String reversal: Reverse a string using slicing. Example: 'hello' -> 'olleh'.
Palindrome check: Determine if a string reads the same forwards and backwards. Example: 'racecar' is a palindrome.
Substring search: Find if one string is a substring of another. Example: 'cat' in 'concatenation' returns True.
Characte...
Explore unconventional methods to achieve sub-linear time complexity for the given problem.
Use hashing to store previously computed results, allowing O(1) lookups.
Implement a divide-and-conquer strategy to reduce problem size recursively.
Consider using a probabilistic approach, like Bloom filters, for approximate results.
Utilize parallel processing to handle multiple data segments simultaneously.
Delete nodes in a linked list which have greater value on right side
Traverse the linked list and compare each node with its right side node
If the current node's value is less than its right side node, delete the current node
Repeat the process until the end of the linked list is reached
Code for reversing a linked list
Create a new empty linked list
Traverse the original linked list and insert each node at the beginning of the new list
Return the new list
Methods are functions that perform a specific task, while constructors are special methods that initialize objects.
Constructors have the same name as the class they belong to.
Constructors are called automatically when an object is created.
Constructors can be overloaded with different parameters.
Methods can be called multiple times with different arguments.
Methods can have a return type, while constructors do not.
Find minimum number of weighings required to find the heavier coin out of 100 coins with a balance.
Divide the coins into 3 groups of 33 each and weigh 2 groups against each other.
If one group is heavier, divide it into 3 groups of 11 each and weigh 2 groups against each other.
Repeat the process until the heavier coin is found.
Minimum number of weighings required is 4.
Function to check if a string has all lowercase letters appearing at least once without extra space in O(N) time.
Create a boolean array of size 26 to keep track of the occurrence of each letter.
Iterate through the string and mark the corresponding index in the array as true.
Check if all the elements in the array are true and return yes if so.
Alternatively, use a bit vector to keep track of the occurrence of each l...
Given an array of size 98 with natural numbers from 1-100 but 2 numbers are missing, find them.
Calculate the sum of all numbers from 1-100 using the formula n(n+1)/2
Calculate the sum of all numbers in the array
Subtract the sum of array from the sum of all numbers to get the sum of missing numbers
Find the missing numbers by iterating through the array and checking which numbers are not present
Detect and remove cycle in a linked list
Use two pointers, one slow and one fast, to detect a cycle
Once a cycle is detected, move one pointer to the head and iterate both pointers until they meet again
Set the next node of the last node in the cycle to null to remove the cycle
I applied via Campus Placement and was interviewed in Aug 2024. There were 3 interview rounds.
Array , String, stack , queue - Basic Easy to medium level
When we visit a URL, the browser sends a request to the server hosting the website, which then responds with the requested web page.
Browser sends a request to the server hosting the website
Server processes the request and responds with the requested web page
Web page is displayed in the browser for the user to interact with
HTTP is a protocol used for transferring data over the internet, while HTTPS is a secure version of HTTP that encrypts data.
HTTP stands for Hypertext Transfer Protocol, used for transmitting data over the internet.
HTTPS stands for Hypertext Transfer Protocol Secure, which adds a layer of security by encrypting data.
HTTP operates on port 80, while HTTPS operates on port 443.
HTTPS uses SSL/TLS certificates to establish a...
I have always been a dedicated student, excelling in academics and extracurricular activities.
Consistently achieved top grades in all subjects
Participated in various school competitions and won awards
Served as a class representative and organized events
Took part in sports teams and cultural activities
I applied via Campus Placement and was interviewed in Jul 2024. There were 4 interview rounds.
4 questions on codebyte platform
1 easy combination sum
2. medium spiral traversal
3. medium question based on backtracking
4. medium to hard question based on anagrams
Use binary search to find the target element in a rotated sorted array.
Perform binary search to find the pivot element where the array is rotated.
Based on the pivot element, determine which half of the array to search for the target element.
Continue binary search in the appropriate half of the array to find the target element.
I applied via Campus Placement
90 mins, easy, Data structures and algorithm basics
Remove duplicates from array of strings in place
Use a HashSet to keep track of unique elements
Iterate through the array and remove duplicates by checking if element is already in the HashSet
Update the array in place by shifting elements to fill in the removed duplicates
Caching is the process of storing data in a temporary location to reduce access time and improve performance.
Caching helps reduce the load on servers by serving frequently accessed data quickly
It can improve performance by reducing the time needed to retrieve data from the original source
Examples include browser caching, CDN caching, and database caching
I appeared for an interview in Dec 2024, where I was asked the following questions.
Streams provide a functional approach to processing collections, while for loops offer imperative control over iteration.
Streams support functional programming, allowing operations like map, filter, and reduce.
For loops provide more control over iteration, including index manipulation.
Example of stream: List<String> names = Arrays.asList('Alice', 'Bob'); names.stream().filter(n -> n.startsWith('A')).forEach(Sy...
2 hours coding round, only 1 person out of 90 cleared
I applied via Referral and was interviewed in Apr 2024. There was 1 interview round.
4 dsa questions were asked in online coding round.
DSA question asked in the coding test.
I appeared for an interview in Nov 2024, where I was asked the following questions.
I applied via Campus Placement and was interviewed in Jul 2023. There were 4 interview rounds.
There were 4 questions, CoderByte was the platform used.
1st: Hard: Array: Search GFG for "Maximum size rectangle binary sub-array with all 1s"
2nd: Medium: Search: Longest Palindrome Substring
3rd: Easy: String: Search LEET for "Largest Substring between two equal characters." There was one more condition - the substring should have unique characters.
4th: Easy: String: Given a string, of characters, If "M" is encountered, remove "M" and duplicate the last small case letter. If "N" is encountered, remove "N" and discard the next character.
Time complexity measures the amount of time an algorithm takes to complete as a function of the input size.
Time complexity is expressed using Big O notation (e.g., O(n), O(log n)).
O(1) - Constant time: Example - Accessing an element in an array by index.
O(n) - Linear time: Example - Finding an element in an unsorted array.
O(n^2) - Quadratic time: Example - Bubble sort algorithm.
O(log n) - Logarithmic time: Example - Bi...
Time complexity to add an element to a Singly Linked List is O(1) if added at the end using Tail pointer, and O(n) if added anywhere in the middle.
Adding an element at the end of a Singly Linked List using the Tail pointer is a constant time operation, hence O(1).
Adding an element anywhere in the middle of a Singly Linked List requires traversing the list to find the insertion point, resulting in a time complexity of O...
Find the smallest prime number in a given array of numbers.
A prime number is greater than 1 and has no divisors other than 1 and itself.
Example: In the array [4, 6, 8, 3, 5], the smallest prime is 3.
To find the smallest prime, iterate through the array and check each number for primality.
Use a helper function to determine if a number is prime.
NextJs is a framework built on top of ReactJs, providing server-side rendering and other features for easier development.
NextJs is a framework built on top of ReactJs, providing server-side rendering, routing, and other features for easier development.
ReactJs is a JavaScript library for building user interfaces, while NextJs is a framework that adds functionality like server-side rendering and routing to React applicat...
Optimizing JSON involves minimizing redundant data, using efficient data structures, and compressing data when necessary.
Minimize redundant data by using references or IDs instead of repeating the same information multiple times.
Use efficient data structures like arrays or dictionaries to store JSON data in a more organized and accessible way.
Compress JSON data using techniques like gzip or deflate to reduce file size ...
Full Stack Web Development has its challenges, including complexity, skill breadth, and project management issues.
Complexity: Managing both front-end and back-end can be overwhelming, leading to potential burnout.
Skill Breadth: Requires knowledge of multiple technologies (e.g., React, Node.js), making it hard to master any single one.
Project Management: Balancing tasks across the stack can lead to miscommunication and ...
Yes, I prefer commuting to work by train for its reliability and eco-friendliness.
I find commuting by train to be more reliable than other modes of transportation, as it is not affected by traffic congestion.
Taking the train is also more eco-friendly compared to driving a car, as it reduces carbon emissions.
Commuting by train allows me to relax, read, or work during the journey, making it a productive use of time.
Top trending discussions
Some of the top questions asked at the Carwale interview -
The duration of Carwale interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 29 interview experiences
Difficulty level
Duration
based on 169 reviews
Rating in categories
2-5 Yrs
₹ 3.4-7.2 LPA
3-6 Yrs
₹ 2.1-39 LPA
4-6 Yrs
₹ 3-7.3 LPA
Accounts Manager
138
salaries
| ₹3 L/yr - ₹5.8 L/yr |
Key Account Manager
97
salaries
| ₹3 L/yr - ₹9.1 L/yr |
Regional Manager
35
salaries
| ₹4 L/yr - ₹10.2 L/yr |
Product Manager
27
salaries
| ₹12 L/yr - ₹31 L/yr |
Software Development Engineer 1
22
salaries
| ₹6.5 L/yr - ₹14.9 L/yr |
MagicBricks
Netmeds.com
Practo
Tracxn