Tip 1 : Practice atleast 250 Dsa questions
Tip 2 : Do atleast 2 projects
Tip 3 : prepare OOPs questions
Tip 1 : Have some coding platform links where you practiced like leetcode
Tip 2 : have some projects on resume
It was a telephonic interview at 5 pm , i was asked some technical questions.
Asked me about myself.
Questions from previous internships.
Why do I want to change company?
It was scheduled at 4 pm, as i joined interviewer asked me to give my introduction and then asked if i code in Java as the role was for Java language teaching assistant and then he asked me to share my screen and gave me the first question of leetcode.
He asked me to tell the brute force approach first and then solve the same and then go for an optimised approach. He told me to solve the question by explaining as if i am teaching a student.
Then after solving the question, he asked me about the recursion and told me to solve any question using recursion on online compiler.
Then after solving the same he gave me another question on recursion to solve on pepcoding site.
After solving all the questions, i got selected for the role .



An array c is a subarray of array d if c can be obtained from d by deletion of several elements from the beginning and several elements from the end.
For e.g.- The non-empty subarrays of an array [1,2,3] will be- [1],[2],[3],[1,2],[2,3],[1,2,3].
If arr = {-3,4,5}.
All the possible non-empty contiguous subarrays of “arr” are {-3}, {4}, {5}, {-3,4}, {4,5} and {-3,4,5}.
The product of these subarrays are -3, 4, 5, -12, 20 and -60 respectively.
The maximum product is 20. Hence, the answer is 20.
Can you solve this in linear time and constant space complexity?
Step1 : I firstly gave the brute force approach of using multiple loops
Step2 : Then i told optimised approach of using 4 variables current and previous maximum and minimum
Step3 : interviewer was happy with the approach



If we are given an array ARR=[1,2,3] then the power set P(ARR) of the set ARR is: [ [], [1], [2], [1,2], [3], [1,3], [2,3], [1,2,3] ]
For every subset 'X' present in power set P(ARR) of set ARR, X must be sorted i.e. in the example above:
P1(ARR) = [ [], [1], [2], [1,2], [3], [1,3], [2,3], [1,2,3] ]
P2(ARR) = [ [], [1], [1,2,3], [2], [1,2], [3], [1,3], [2,3] ]
P3(ARR) = [ [], [1], [2], [1,2], [3], [1,3], [2,3], [2,3,1] ]
P1(ARR) and P2(ARR) will be considered correct power sets but P3(ARR) will not be considered correct because there the last subset [2, 3, 1] is not sorted.
Step 1 : This was need to be solved by recursion so i made the function and used recursion calling
Step 2 : substring was used to call for every part of string
Step 3 : interviewer was happy with the approach

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