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.
This round was the only technical round.



‘S’ = “aabcd”, ‘M’ = 2, ‘A’ = [0, 1]
After 1st operation i.e, reversing from [0, 4], ‘S’ = “dcbaa”.
After 2nd operation i.e, reversing from [1, 3], ‘S’ = “dabca”.
Hence, the answer is “dabca”.
This can be done by iterative swapping using two pointers. The first pointer points to the beginning of the string, whereas the second pointer points to the end. Both pointers keep swapping their elements and go towards each other. Essentially, the algorithm simulates the rotation of a string with respect to its midpoint.
Time Complexity : O(n)



Can you do the above task in a minimum number of comparisons?
getMin(arr, n)
{
Initialise res = arr[0].
for (int i = 1; i < n; i++)
res = min(res, arr[i])
return res
}
getMax(arr, n)
{
initialise res = arr[0].
for (int i = 1; i < n; i++)
res = max(res, arr[i])
return res
}
Difference between C, C++ and Java
1. The C programming language is a procedural language type while C++ is an object-oriented programming language type. Java is a Pure Object Oriented Oriented language.
2. C programming follows a top to down programming approach that focuses on the steps rather than the data. C++ follows a bottom-to-top approach that focuses on data rather than the overall procedure. Java follows a bottom-up approach.
3. C and C++ are platform dependent while Java is a platform independent language.
What are the scope of variables in java?
Scope of a variable is the part of the program where the variable is accessible. Like C/C++, in Java, all identifiers are lexically (or statically) scoped, i.e.scope of a variable can determined at compile time and independent of function call stack. Java programs are organized in the form of classes. Every class is part of some package. Java scope rules can be covered under following categories.
Member Variables (Class Level Scope) : These variables must be declared inside class (outside any function). They can be directly accessed anywhere in class.
Local Variables (Method Level Scope) : Variables declared inside a method have method level scope and can’t be accessed outside the method.
Loop Variables (Block Scope) : A variable declared inside pair of brackets “{” and “}” in a method has scope within the brackets only.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?