Filter interviews by
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.
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...
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...
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.
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...
Caching is the process of storing frequently accessed data in a temporary storage to improve performance.
Caching reduces the need to fetch data from the original source, improving response time.
It helps in reducing network traffic and server load.
Caching can be done at various levels like browser caching, CDN caching, and server-side caching.
Examples of caching include browser caching of website assets, CDN cachin...
Designing an e-commerce web app involves user interface, product management, payment processing, and scalability considerations.
User Interface: Create a responsive design for easy navigation and product discovery.
Product Management: Implement a database to manage product listings, including categories, descriptions, and images.
User Authentication: Allow users to create accounts, log in, and manage their profiles.
S...
A load balancer distributes network traffic across multiple servers to ensure reliability and optimize resource use.
Improves application availability by distributing requests to multiple servers.
Can be hardware-based (like F5) or software-based (like Nginx).
Helps in scaling applications by adding more servers as demand increases.
Supports various algorithms like Round Robin, Least Connections, and IP Hash.
Example: ...
Implement 2 stacks in an array
Divide the array into two halves
Use top1 and top2 to keep track of top elements of stacks
Push and pop elements from respective halves
Check for overflow and underflow conditions
LRU Cache is a data structure that stores the most recently used items and discards the least recently used items.
Use a hash table to store key-value pairs
Use a doubly linked list to keep track of the order of items
When an item is accessed, move it to the front of the list
When the cache is full, remove the least recently used item from the back of the list
Lookup and insertion should be O(1) time complexity
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.
I appeared for an interview in Mar 2023.
SQL-medium-joins
Python-medium-dictionaries
I applied via Campus Placement and was interviewed in Aug 2022. There were 3 interview rounds.
Questions from trees and linkedin
Reverse a linked list using multiple approaches.
Iterative approach: Use three pointers to reverse the links between nodes.
Recursive approach: Recursively reverse the rest of the list and adjust the links.
Stack approach: Push all the nodes onto a stack and then pop them to create the reversed list.
I applied via Campus Placement and was interviewed before Sep 2021. There were 3 interview rounds.
Do DSA easy-medium questions from leetcode
Most of the questions were array based
Designing an e-commerce web app involves user interface, product management, payment processing, and scalability considerations.
User Interface: Create a responsive design for easy navigation and product discovery.
Product Management: Implement a database to manage product listings, including categories, descriptions, and images.
User Authentication: Allow users to create accounts, log in, and manage their profiles.
Shoppi...
A load balancer distributes network traffic across multiple servers to ensure reliability and optimize resource use.
Improves application availability by distributing requests to multiple servers.
Can be hardware-based (like F5) or software-based (like Nginx).
Helps in scaling applications by adding more servers as demand increases.
Supports various algorithms like Round Robin, Least Connections, and IP Hash.
Example: A web...
Caching is the process of storing frequently accessed data in a temporary storage to improve performance.
Caching reduces the need to fetch data from the original source, improving response time.
It helps in reducing network traffic and server load.
Caching can be done at various levels like browser caching, CDN caching, and server-side caching.
Examples of caching include browser caching of website assets, CDN caching of ...
I applied via Campus Placement and was interviewed in May 2021. There were 4 interview rounds.
LRU Cache is a data structure that stores the most recently used items and discards the least recently used items.
Use a hash table to store key-value pairs
Use a doubly linked list to keep track of the order of items
When an item is accessed, move it to the front of the list
When the cache is full, remove the least recently used item from the back of the list
Lookup and insertion should be O(1) time complexity
Implement 2 stacks in an array
Divide the array into two halves
Use top1 and top2 to keep track of top elements of stacks
Push and pop elements from respective halves
Check for overflow and underflow conditions
posted on 14 Oct 2015
Top trending discussions
Queue can be implemented using two stacks by maintaining the order of elements in the stacks.
Create two stacks, let's call them stack1 and stack2
When an element is enqueued, push it to stack1
When an element is dequeued, pop all elements from stack1 and push them to stack2
Pop the top element from stack2 and return it as the dequeued element
If stack2 is empty, repeat step 3
To get the front element of the queue, peek the ...
Retrieve the 2nd highest and nth highest marks from a student table using SQL queries.
Use the DISTINCT keyword to avoid duplicate marks.
For the 2nd highest marks: SELECT DISTINCT Marks FROM student ORDER BY Marks DESC LIMIT 1 OFFSET 1;
For nth highest marks: SELECT DISTINCT Marks FROM student ORDER BY Marks DESC LIMIT 1 OFFSET n-1; (replace n with the desired number)
Example for 2nd highest: If Marks are 90, 85, 90, 80, ...
Left join returns all records from left table and matching records from right table. Full outer join returns all records from both tables.
Left join is used to combine two tables based on a common column.
In left join, all records from the left table are returned along with matching records from the right table.
If there is no match in the right table, NULL values are returned.
Example: SELECT * FROM table1 LEFT JOIN table...
Magic functions are special methods in PHP that start with __. Autoloading is a way to automatically load classes.
Magic functions are used to handle certain events in PHP, such as object creation or property access.
Autoloading allows PHP to automatically load classes when they are needed, without requiring manual includes.
Magic functions can be used in conjunction with autoloading to dynamically load classes or handle ...
Given three sorted arrays, find common elements.
Create three pointers to traverse each array
Compare the elements at the pointers and move the pointer of the smallest element
If all pointers point to the same element, add it to the result and move all pointers
Repeat until any pointer reaches the end of its array
Check if a number is a power of 2 or not.
A power of 2 has only one bit set in its binary representation.
Use bitwise AND operator to check if the number is a power of 2.
If n is a power of 2, then n & (n-1) will be 0.
Some of the top questions asked at the Carwale interview for freshers -
The duration of Carwale interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 3 interview experiences
Difficulty level
Duration
based on 169 reviews
Rating in categories
4-6 Yrs
₹ 3-7.3 LPA
2-5 Yrs
₹ 3.4-7.2 LPA
3-6 Yrs
₹ 2.1-39 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