Filter interviews by
new() is an operator in C++ used for dynamic memory allocation.
new() returns a pointer to the allocated memory.
It can be used to allocate memory for primitive data types, arrays, and objects.
Memory allocated using new() must be deallocated using delete operator.
Example: int *ptr = new int;
Example: int *arr = new int[10];
Example: MyClass *obj = new MyClass();
Self referential structure is a structure that contains a pointer to the same type of structure.
It allows a structure to reference itself within its own definition.
It is commonly used in linked lists, trees, and graphs.
Example: struct Node { int data; struct Node *next; };
Here, the Node structure contains a pointer to another Node structure.
Structure and union are data structures in C language. Union stores only one value at a time while structure stores multiple values.
Structure is used to store different data types while union is used to store only one data type at a time.
Structure allocates memory for all its members while union allocates memory for only the largest member.
Structure is used when we want to store multiple values of different data t...
malloc and new are used to allocate memory dynamically. Malloc is faster but new is safer.
malloc is a C function while new is a C++ operator
malloc only allocates memory while new also initializes the memory
new throws an exception if allocation fails while malloc returns NULL
malloc is faster because it does not involve constructor calls
new is safer because it ensures type safety and prevents memory leaks
Windows is a proprietary operating system developed by Microsoft.
Windows is a graphical user interface (GUI) based operating system.
It is designed to run on personal computers, servers, and mobile devices.
Windows has different versions such as Windows 10, Windows 8, Windows 7, etc.
It supports a wide range of software applications and hardware devices.
Windows is known for its ease of use and user-friendly interface...
No, there is no ideal CPU scheduling possible.
CPU scheduling is a complex problem with many variables.
Different scheduling algorithms are suited for different scenarios.
The ideal scheduling algorithm would depend on the specific system and workload.
For example, a real-time system would require a different scheduling algorithm than a batch processing system.
Accessing static variables from another file is not straightforward due to their limited scope.
Static variables have file scope, meaning they are only accessible within the file they are declared in.
To access a static variable from another file, you can use functions to expose its value.
Example: If 'static int count;' is in file A.c, create a function 'int getCount()' in A.c to return its value.
Include A.h in the ...
A solution for solving the Rubik's cube
Use the layer-by-layer method
Solve the first layer cross
Solve the first layer corners
Solve the second layer
Solve the third layer cross
Solve the third layer corners
Orient the third layer corners
Permute the third layer corners
Permute the third layer edges
A null object is an object that does not have a value or reference to any object.
A null object is different from an object with a value of zero or an empty string.
It is often used to represent the absence of an object or value.
Null objects can be used to avoid null pointer exceptions in programming.
It is a conceptual idea in programming and computer science.
Cannot modify value pointed by p, but can change the address it points to.
p is a pointer to a constant integer with value 5
a) is valid as p can point to a non-constant integer
b) is invalid as *p is a constant and cannot be modified
Implement the game of Snakes and Ladders on LeetCode.
Use a 1D array to represent the board of the game.
Use a queue to perform BFS to find the shortest path to reach the end.
Handle the special cases of snakes and ladders by updating the position accordingly.
I applied via Campus Placement and was interviewed in Feb 2024. There were 4 interview rounds.
In-person test in their office at Chennai
Hackerrank easy - medium difficulty
It was 1 hour online coding test in which there were 3 coding questions on basic DSA
Advanced DSA test of 4 hours containing 1 question
I want to join Samsung to contribute to innovative technology and be part of a global leader in electronics and software development.
Samsung is at the forefront of technological innovation, constantly pushing boundaries in areas like AI and IoT.
The opportunity to work on cutting-edge products, such as smartphones and smart home devices, excites me.
Samsung's commitment to sustainability aligns with my values, and I want...
Coding questions were given to solve in a time frame
They were asked on linked list merge
1 medium level question on DP. Need to run all the test cases to pass.
3 hours one question
Top trending discussions
Some of the top questions asked at the Samsung Software Engineer interview -
The duration of Samsung Software Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 21 interview experiences
Difficulty level
Duration
based on 138 reviews
Rating in categories
Assistant Manager
1k
salaries
| ₹9.3 L/yr - ₹15.1 L/yr |
Software Engineer
949
salaries
| ₹11.6 L/yr - ₹20 L/yr |
Sales Executive
893
salaries
| ₹1.8 L/yr - ₹5.5 L/yr |
Manager
520
salaries
| ₹15.5 L/yr - ₹28.3 L/yr |
Senior Engineer
470
salaries
| ₹7.9 L/yr - ₹14.7 L/yr |
Apple
vivo
OPPO
Dell