i
Smart Energy Water
Filter interviews by
It depends on the specific use case and requirements of the project.
Use struct for lightweight data structures with no behavior or methods.
Use class for more complex data structures with behavior and methods.
Structs are value types while classes are reference types.
Structs are typically used for small data structures like Point, Rectangle, etc.
Classes are used for larger, more complex objects like Customer, Employee, e
Top trending discussions
I appeared for an interview in Apr 2022.
posted on 4 Oct 2024
I applied via Referral and was interviewed in Sep 2024. There were 3 interview rounds.
Three DSA questions one on likedlist one on BST and one on maps
Smart pointers in C++ provide automatic memory management and help prevent memory leaks.
Smart pointers are objects that manage the memory of a pointer automatically.
They ensure that memory is deallocated when it is no longer needed.
Examples include unique_ptr, shared_ptr, and weak_ptr.
DSA questions on graph and lots of puzzles
I applied via Naukri.com and was interviewed in Jun 2021. There was 1 interview round.
posted on 31 May 2022
I appeared for an interview before May 2021.
Round duration - 90 minutes
Round difficulty - Easy
Timing - 10AM-11:30AM
Online proctored test
Given a binary tree of integers, your task is to print the right view of it. The right view represents a set of nodes visible when the tree is viewed from the righ...
The task is to print the right view of a binary tree, representing nodes visible from the right side in top-to-bottom order.
Traverse the tree level by level and keep track of the rightmost node at each level
Print the rightmost node of each level to get the right view of the tree
Use a queue for level order traversal and a map to store the rightmost nodes
A thief is planning to rob a store and can carry a maximum weight of 'W' in his knapsack. The store contains 'N' items where the ith item has a weight of 'wi' and a value of...
Yes, the 0/1 Knapsack problem can be solved using dynamic programming with a space complexity of not more than O(W).
Use a 1D array to store the maximum value that can be stolen for each weight from 0 to W.
Iterate through each item and update the array based on whether including the item would increase the total value.
The final value in the array at index W will be the maximum value that can be stolen.
Round duration - 45 minutes
Round difficulty - Medium
Timing : 4PM-5PM
Environment - Online
There was a panel of 3 interviewers
You can find the size of an array in C or C++ by dividing the total size of the array by the size of one element.
Calculate the total size of the array by multiplying the number of elements by the size of each element.
Divide the total size by the size of one element to get the size of the array.
For example, if you have an array of strings arr[] = {'hello', 'world', 'example'}, you can find the size by dividing the total
B+ trees are used for indexing in databases to efficiently search and retrieve data.
B+ trees are balanced trees where each node can have multiple keys and child pointers.
Data is stored in leaf nodes, while non-leaf nodes are used for navigation.
B+ trees are commonly used in databases because of their ability to efficiently search and retrieve data.
Example: In a database table with an index on a specific column, B+ tree...
Round duration - 45 mintues
Round difficulty - Easy
Timing - 11AM-12:15PM
Environment - online video call
Again there was a panel of 2 senior engineers
You are given an n-ary tree consisting of 'N' nodes. Your task is to determine the maximum sum of the path from the root to any leaf node.
For the giv...
Find the maximum sum of the path from the root to any leaf node in an n-ary tree.
Traverse the tree from root to leaf nodes while keeping track of the sum of each path.
At each node, calculate the sum of the path from the root to that node and update the maximum sum found so far.
Consider using depth-first search (DFS) or breadth-first search (BFS) for tree traversal.
Handle cases where nodes have negative values or where
Tip 1 : Brush Up on Computer Science Fundamentals
Tip 2 : Prepare a Brief Self-Introduction
Tip 1 : Do not put fake resume
Tip 2 : Writing internship project helps.
I applied via Naukri.com and was interviewed in May 2021. There were 3 interview rounds.
I applied via Approached by Company and was interviewed before Apr 2023. There was 1 interview round.
I applied via Naukri.com and was interviewed before Apr 2023. There was 1 interview round.
I applied via Naukri.com and was interviewed in Mar 2023. There were 3 interview rounds.
String related functions,virtual functions and STL concepts
based on 1 interview
Interview experience
based on 14 reviews
Rating in categories
Product Engineer
105
salaries
| ₹6 L/yr - ₹16 L/yr |
Senior Product Engineer
72
salaries
| ₹7.5 L/yr - ₹27 L/yr |
Senior Software Engineer
63
salaries
| ₹6.6 L/yr - ₹21.2 L/yr |
Production Analyst
54
salaries
| ₹7 L/yr - ₹9.8 L/yr |
Technical Lead
37
salaries
| ₹9.8 L/yr - ₹24 L/yr |
Apisero
Actalent Services
Cyber Infrastructure
TestingXperts