i
Cognizant
Filter interviews by
I appeared for an interview in Sep 2021.
Round duration - 180 minutes
Round difficulty - Easy
Given an array prices
where the ith element represents the price of a stock on the ith day, your task is to determine the maximum profit that can be achieved at ...
Determine the maximum profit that can be achieved by selling stocks with at most two transactions.
Iterate through the array and calculate the maximum profit that can be achieved by selling at each day.
Keep track of the maximum profit that can be achieved after the first transaction and the maximum profit that can be achieved after the second transaction.
Return the maximum profit that can be achieved after the second tr...
Given an array ARR
containing N
integers, your task is to calculate the total sum of the Hamming Distance for all possible pairs of elements in the array.
Calculate the total sum of Hamming Distance for all possible pairs of elements in an array.
Iterate through all pairs of elements in the array
Calculate the Hamming Distance between each pair of elements
Sum up all the calculated Hamming Distances
Round duration - 30 minnutes
Round difficulty - Hard
Given a list of integers of size N
, your task is to determine the Next Greater Element (NGE) for every element. The Next Greater Element for an element X
is the firs...
The task is to find the next greater element for each element in a list of integers.
Iterate through the list of integers from right to left.
Use a stack to keep track of elements whose next greater element is yet to be found.
Pop elements from the stack until a greater element is found or the stack is empty.
Assign the next greater element to the current element or -1 if no greater element is found.
Return the list of next...
Given a binary tree, your task is to print the left view of the tree.
The input will be in level order form, with node values separated by a...
Print the left view of a binary tree given in level order form.
Traverse the tree level by level and print the first node of each level
Use a queue to keep track of nodes at each level
Handle null nodes by using a placeholder value like -1
Round duration - 10 minutes
Round difficulty - Medium
Tip 1 : practice more on programming
Tip 2 : just first learn basics and go for advance
Tip 3 : the questions on database are more important that can increases more package just well prepare on sql
Tip 1 : everything should be format in a nice way don't add colors to resume keep it simple
Tip 2 : first name-->address->education->experience->projects/open source->achievements
I applied via Job Fair and was interviewed before Feb 2021. There were 2 interview rounds.
I applied via Naukri.com and was interviewed in Jun 2020. There were 3 interview rounds.
I applied via Company Website and was interviewed before Oct 2019. There were 4 interview rounds.
What people are saying about Cognizant
I applied via Referral and was interviewed before Sep 2019. There were 5 interview rounds.
To resolve Outlook working offline issue, check network connection and disable Work Offline mode.
Check network connection and ensure it is stable
Disable Work Offline mode in Outlook settings
Restart Outlook and check if issue is resolved
I applied via Referral and was interviewed before Apr 2020. There were 5 interview rounds.
I appeared for an interview in Jun 2016.
I appeared for an interview before Nov 2016.
I worked on a project analyzing customer data to identify trends and improve marketing strategies.
Used data analysis techniques to identify patterns and correlations in customer behavior
Developed predictive models to forecast customer preferences and optimize marketing campaigns
Collaborated with cross-functional teams to implement data-driven strategies and measure their impact
Conducted A/B testing to evaluate the effe...
Associate
73.2k
salaries
| ₹5.1 L/yr - ₹14.5 L/yr |
Programmer Analyst
56.2k
salaries
| ₹2 L/yr - ₹9.3 L/yr |
Senior Associate
55.1k
salaries
| ₹8.4 L/yr - ₹28.5 L/yr |
Senior Processing Executive
29.8k
salaries
| ₹1.4 L/yr - ₹6.5 L/yr |
Technical Lead
18.1k
salaries
| ₹6 L/yr - ₹25.6 L/yr |
TCS
Infosys
Wipro
Accenture