Filter interviews by
I applied via Naukri.com and was interviewed before Sep 2023. There was 1 interview round.
The fuel consumption for baking 1 ton of biscuits depends on the type of oven used, temperature settings, and baking time.
Fuel consumption can vary based on the type of oven (electric, gas, wood-fired, etc.)
Temperature settings and baking time will also impact fuel consumption
Example: Gas ovens typically have a higher fuel consumption compared to electric ovens
Gear is a rotating machine part with teeth that mesh with another toothed part to transmit motion. Sprocket is a toothed wheel that works with a chain or belt to transmit motion.
Gear is typically used in mechanical systems to transfer motion and power.
Sprockets are commonly used in bicycles and motorcycles to transfer motion from pedals to wheels.
Gears have teeth that mesh with other gears to transmit motion, while spr...
Top trending discussions
Yes, social media can be used for educational purposes.
Social media provides a platform for sharing educational content and resources.
It allows for collaboration and communication among students and teachers.
Social media can enhance learning through interactive discussions and real-time feedback.
It can also help in reaching a wider audience and promoting educational initiatives.
Examples include educational YouTube chan...
I am a highly motivated and experienced project engineer with a strong background in managing complex engineering projects.
I have a Bachelor's degree in Engineering and have been working as a project engineer for the past 5 years.
I have successfully managed multiple projects from conception to completion, ensuring they are delivered on time and within budget.
I have a proven track record of effectively coordinating with...
The present CEO is John Smith.
John Smith is the current CEO of the company.
He has been in this position since 2015.
Under his leadership, the company has experienced significant growth and expansion.
John Smith has a strong background in engineering and project management.
He is known for his strategic vision and ability to drive innovation.
Polymorphism is the ability of an object to take on many forms. In C++, it is achieved through function overloading and virtual functions.
Polymorphism allows objects of different classes to be treated as objects of a common base class.
Function overloading enables multiple functions with the same name but different parameters.
Virtual functions allow derived classes to override base class functions.
Find sum of all numbers formed from root to leaf path in a binary tree
Traverse the binary tree using DFS
At each leaf node, add the number formed from root to leaf path to a sum variable
Return the sum variable
Time complexity: O(n)
Example: For a binary tree with root value 1, left child 2 and right child 3, the sum would be 12 + 13 = 25
Given a string, print all possible strings that can be made by placing spaces (zero or one) in between them.
Use recursion to generate all possible combinations of spaces
For each recursive call, either add a space or don't add a space between the current character and the next character
Base case is when there are no more characters left to add spaces between
Time complexity is O(2^n) where n is the length of the string
Preorder traversal without recursion
Use a stack to keep track of nodes
Push right child first and then left child onto stack
Pop top of stack and print value
Repeat until stack is empty
Find longest continuous patch on a 12 km road with updates in patches
Maintain a variable to keep track of current patch length
Update the variable whenever a new patch is added
Maintain a variable to keep track of longest patch so far
Compare current patch length with longest patch length and update if necessary
Use a sorted data structure like a binary search tree to store the patches for efficient search
Time complexity: ...
Find median of an unsorted array.
Sort the array and find the middle element
Use quickselect algorithm to find the median in O(n) time
If the array is small, use brute force to find the median
Find 'k' elements closest to a given number from a stream of characters.
Use a priority queue to keep track of closest elements.
Update the queue as new characters come in.
Return the 'k' closest elements from the queue.
Design a data structure with O(1) insert, remove, find-max, and delete-max operations.
Use a doubly linked list to maintain the elements in sorted order.
Use a hash table to store the pointers to the nodes in the linked list.
Maintain a pointer to the maximum element in the hash table.
Update the pointers in the hash table when inserting or removing elements.
Update the maximum pointer when deleting or inserting the maximum
Check if a given linked list is a palindrome.
Traverse the linked list and store the values in an array.
Compare the first and last elements of the array, then move towards the center.
If all elements match, the linked list is a palindrome.
Alternatively, use two pointers to find the middle of the linked list and reverse the second half.
Compare the first half with the reversed second half to check for a palindrome.
Amul India
Mother Dairy Fruit & Vegetable
Parle Agro
Britannia