Filter interviews by
I applied via Hirect and was interviewed in May 2022. There were 3 interview rounds.
Map and unordered map are implemented as associative containers in C++ STL library.
Map is implemented as a balanced binary search tree while unordered map is implemented as a hash table.
Map stores elements in a sorted order while unordered map does not guarantee any specific order.
Map has a logarithmic time complexity for insertion, deletion, and search operations while unordered map has an average constant time comple...
Virtual functions are functions that can be overridden in derived classes. Vtables are tables of function pointers used for dynamic dispatch.
Virtual functions allow for polymorphism and dynamic binding
Vtables are used to implement virtual functions
Method overriding is when a derived class provides its own implementation of a virtual function
Virtual functions are declared using the virtual keyword
Example: class Animal {...
Debugging C++ program with segmentation fault using GDB
Compile the program with -g flag to include debugging symbols
Run the program with GDB and set breakpoints at suspected functions
Use 'run' command to execute the program within GDB
Use 'backtrace' command to see the call stack when the segmentation fault occurs
Use 'print' command to inspect variables and memory addresses
Use 'core dump' command to generate a core dump
A singleton class is a class that can only have one instance created at a time.
Singleton classes are often used in situations where only one instance of a class is needed, such as for managing a database connection or a configuration file.
The singleton pattern is implemented by making the constructor of the class private and providing a static method that returns the single instance of the class.
Singleton classes can b...
A singleton class is a class that can only have one instance created throughout the lifetime of an application.
Create a private constructor to prevent external instantiation.
Create a private static instance of the class.
Create a public static method to access the instance.
Ensure thread safety by using synchronized keyword or static initializer.
Example: public class Singleton { private static Singleton instance = null; ...
Use C++ map or unordered_map to store key value pairs with same key
C++ map and unordered_map are associative containers that store elements in key value pairs
If the key is same for some entries, map will store only one entry while unordered_map can store multiple entries
Example: map
Example: unordered_map
To grep a value from a file with key=value format, use awk command with delimiter as '=' and search for the key.
Use awk command with delimiter as '=' to split the line into key and value
Search for the key in the key column and print the corresponding value column
Example: awk -F'=' '/key/ {print $2}' file.txt
I applied via Approached by Company and was interviewed before Sep 2021. There were 3 interview rounds.
Angular hooks are functions that allow developers to tap into the lifecycle of a component or directive.
Angular hooks are used to perform actions at specific points in the lifecycle of a component or directive
There are several types of hooks, including ngOnInit, ngOnChanges, and ngOnDestroy
ngOnInit is called once when the component is initialized
ngOnChanges is called whenever a data-bound input property changes
ngOnDest...
Explanation of directives, dependency injection, promise and observables, routing, interceptor, and communication between components.
Directives are markers on a DOM element that tell AngularJS to attach a specified behavior to that element.
Dependency Injection is a design pattern that allows a class to be injected with its dependencies rather than creating them itself.
Promises are objects that represent the eventual co...
I was asked to give amcat test as I had less than 3 years of experience.
Top trending discussions
I was interviewed before Aug 2016.
I was interviewed in Apr 2017.
I am a software developer with a passion for coding and problem-solving. My family is supportive and has always encouraged my career in tech.
Experienced software developer
Passionate about coding and problem-solving
Supportive family that encourages my career in tech
I was interviewed before Mar 2021.
Round duration - 60 minutes
Round difficulty - Easy
This was an easy round which went really smooth.
Calculate the Nth term in the Fibonacci sequence, where the sequence is defined as follows: F(n) = F(n-1) + F(n-2)
, with initial conditions F(1) = F(2) = 1
.
Calculate the Nth Fibonacci number efficiently using dynamic programming.
Use dynamic programming to store previously calculated Fibonacci numbers to avoid redundant calculations.
Start with base cases F(1) and F(2) as 1, then iteratively calculate F(n) using F(n-1) and F(n-2).
Ensure the input N is within the constraints 1 <= N <= 10000.
Example: For N = 5, the 5th Fibonacci number is 5 (1, 1, 2, 3, 5).
Given a positive integer N
, your task is to determine and return all prime numbers less than or equal to N
.
N = 10
2 3 5 7
N = 20
Implement a function to return all prime numbers less than or equal to a given positive integer N.
Create a function that takes a positive integer N as input
Iterate from 2 to N and check if each number is prime
Use a helper function to determine if a number is prime
Return an array of all prime numbers less than or equal to N
A merge join in SQL is a method of combining two sorted datasets by matching corresponding rows based on a specified condition.
Merge join is used when joining two large datasets that are already sorted.
It is more efficient than other join methods like nested loop join or hash join for sorted datasets.
The join condition must be an equality condition.
Example: SELECT * FROM table1 INNER JOIN table2 ON table1.id = table2.i
Round duration - 30 minutes
Round difficulty - Easy
The round went excellent. I really enjoyed it. Just be confident about whatever you answer
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
I was interviewed before Mar 2021.
Round duration - 60 minutes
Round difficulty - Easy
This round went well. Interview depends on your basic knowledge of C/C++.
Given two sparse matrices MAT1
and MAT2
of integers with dimensions 'N' x 'M' and 'M' x 'P' respectively, the goal is to determine the resulting matrix produced by their multipl...
Implement a function to multiply two sparse matrices and return the resulting matrix.
Create a function that takes two sparse matrices as input and returns the resulting matrix after multiplication
Iterate through the non-zero elements of the matrices to perform the multiplication efficiently
Handle the edge cases such as empty matrices or matrices with all zero elements
Ensure the dimensions of the matrices are compatible
Tanmay and Rohit are best buddies. Tanmay gives Rohit a challenge involving an array of N natural numbers. The task is to perform and answer a series of queries on the ...
Count the number of even or odd numbers in a range of an array based on given queries.
Create an array to store the input numbers.
Iterate through the queries and update or count even/odd numbers based on the query type.
Output the count of even or odd numbers for each query of type 1 or 2.
Round duration - 30 minutes
Round difficulty - Easy
Typical HR round with behavioral problems.
Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
I was interviewed in Jul 2017.
I was interviewed in Apr 2017.
Firmware is a type of software that is embedded in hardware devices to control their functionality.
Firmware is a combination of hardware and software.
It is used to control the behavior of hardware devices.
Firmware is typically stored in non-volatile memory, such as ROM or flash memory.
Examples of devices that use firmware include routers, printers, and digital cameras.
I am a passionate software developer with experience in building web applications and solving complex problems.
Experienced in programming languages such as Java, JavaScript, and Python
Familiar with front-end technologies like HTML, CSS, and React
Strong problem-solving skills and ability to work in a team environment
Previous projects include developing a customer management system for a small business
I applied via Campus Placement
Some of the top questions asked at the Tcg Digital Solutions Software Developer interview for experienced candidates -
based on 10 reviews
Rating in categories
Software Developer
99
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Software Developer
58
salaries
| ₹0 L/yr - ₹0 L/yr |
Consultant
48
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Consultant
37
salaries
| ₹0 L/yr - ₹0 L/yr |
Senior Manager
34
salaries
| ₹0 L/yr - ₹0 L/yr |
TCS
Infosys
Wipro
HCLTech