Tip 1 : Lots of competitive programming
Tip 2 : Deal with real problems using any coding platform like LeetCode or CodeChef.
Tip 3 : Focus more in leaning and understanding the main concept behind the algorithm.
Tip 1 : Add some working experiences like past job experience or internships and also add your impactful projects in your resume.
Tip 2 : Do not put false things and over skills in your resume.
Timing-90 minutes is the Duration Of Assessment
Test is conducted virtually through Wipro platform. Test covers DSA, OOPS concept, DBMS, SQL, Programming and some general question related to Leadership Principles and workstyles.
start loop in range length of string 's'.
if i th value is not in set 't' then add in set 't' otherwise case(means getting duplicate value)
if duplicate value then delete from starting of the set 't' using l variable until that duplicate value is deleted from the set 't'
at the same time just count the max length of set 't'
and return the max length of set 't'
class Solution:
def lengthOfLongestSubstring(self, s: str) -> int:
if not s: return 0
t=set()
l=0
res=0
for r in range(len(s)):
print(s[r],t)
if s[r] in t:
while s[r] in t:
print("remove",s[l])
t.remove(s[l])
l+=1
t.add(s[r])
print("2-",s[r],t)
res=max(res,r-l+1)
return res
we need to answer questions related to DBMS, SQL, programming, OOPS concept, Leadership Principles, candidate behavior questions and workstyles.
For Example-
Do you agree with your seniors whether that guy is correct or not.
Are you open to learn new technology or still want to work on those technologies on which you are familiar.
We need to solve 1 or 2(based on interviewer) coding question within 1 hour in which we need to explain our approach before writing the code and we need to give optimal solution of the approach.
Interviewer also ask some other question related to DBMS, SQL, OOPS concept and etc.
For the given binary tree [1, 2, 3, -1, -1, 4, 5, -1, -1, -1, -1]
1
/ \
2 3
/ \
4 5
Output: 1 3 2 4 5
Solution in Python:-
# Definition for a binary tree node.
# class TreeNode:
# def __init__(self, val=0, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def zigzagLevelOrder(self, root: Optional[TreeNode]) -> List[List[int]]:
if root is None:
return []
s1=[root]
s2=[]
level=[]
res=[]
while s1 != [] or s2 !=[]:
while s1:
root=s1.pop()
level.append(root.val)
if root.left is not None:
s2.append(root.left)
if root.right is not None:
s2.append(root.right)
res.append(level)
level=[]
while s2:
root=s2.pop()
level.append(root.val)
if root.right is not None:
s1.append(root.right)
if root.left is not None:
s1.append(root.left)
if level != []:
res.append(level)
level=[]
return res
we need to answer questions related to DBMS, SQL, programming, OOPS concept, Leadership Principles, candidate behavior questions and workstyles.
For Example-
Write a query to find out second highest salary of an employee.
Difference between relational and non relational database?
What is the output of given program?
What is OPPS concept and its types?
Difference between function overloading and function overriding?
What is key in SQL queries and explain types of it?
Do you agree with your seniors whether that guy is correct or not.
Are you open to learn new technology or still want to work on those technologies on which you are familiar.
Tip 1 : Need to answer question as per your knowledge and experience.
Tip 2 : Revise your notes and main concepts
Tip 3 : practice lots of CP
Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
Which keyword is used for inheritance?