McAfee interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

McAfee
upvote
share-icon
3 rounds | 2 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 months
Topics: Data Structures, CN, OOPS, DBMS, Algorithms
Tip
Tip

Tip 1 : Go deeply and thoroughly the JAVA topics
Tip 2 : Be thorough with the projects
Tip 3 : Practice leetcode

Application process
Where: Campus
Eligibility: >7 CGPA
Resume Tip
Resume tip

Tip 1 : Keep it simple and in one order
Tip 2 : Highlight your projects

Interview rounds

01
Round
Easy
Online Coding Interview
Duration60 Minutes
Interview date7 Jul 2021
Coding problem0

It was early in the morning and at home with video on.

02
Round
Medium
Face to Face
Duration60 mins
Interview date7 Jul 2021
Coding problem1

It was in afternoon after online coding round. I had questions on OS (Memory management, Virtual memory)
Java - Abstraction and polymorphism
DBMS - JOIN

1. Reverse String

Moderate
0/80
Asked in companies
AccentureHCL TechnologiesAmerican Express

You are given a string ‘S’. You are also given ‘M’ integers in an array ‘A’. You perform ‘M’ operations on this string. The operations are given in an array ‘A’ of size ‘M’.

You perform the operations in the order they appear in the array ‘A’. In the ‘i’th operation, you reverse the substring of ‘S’ from the position ‘A[i]’ to ‘len(S)’ - ‘A[i]’ - 1 (0 based).

Your task is to find the string after performing all the operations.

Example :
‘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”.
Problem approach

Optimizing the solution from worst to start should be the way

Try solving now
03
Round
Hard
Face to Face
Duration60 mins
Interview date7 Jul 2021
Coding problem1

Questions were based on :
Asynchronous database access ( related to AJAX )
Database queries
Multithreading , semaphores and mutex

1. Power of Two

Easy
15m average time
85% success
0/40
Asked in companies
McAfeeAmazonQualcomm

You have been given an integer 'N'.


Your task is to return true if it is a power of two. Otherwise, return false.


An integer 'N' is a power of two, if it can be expressed as 2 ^ 'K' where 'K' is an integer.


For example:
'N' = 4,
4 can be represented as 2^2. So, 4 is the power of two, and hence true is our answer.
Problem approach

I couldn't solve this question properly

Try solving now

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is 3 + 2 * 4 based on operator precedence?

Choose another skill to practice
Similar interview experiences
Technical Analyst-Intern
3 rounds | 5 problems
Interviewed by McAfee
0 views
0 comments
0 upvotes
SDE - 1
3 rounds | 18 problems
Interviewed by McAfee
614 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
1609 views
0 comments
0 upvotes
company logo
System Engineer
2 rounds | 2 problems
Interviewed by Tata Consultancy Services (TCS)
1315 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
109330 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
53406 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
32803 views
6 comments
0 upvotes