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

Associate Software Engineer

New Relic
upvote
share-icon
2 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
My preparation journey has been a mix of learning, practice, and growth. I started by focusing on the basics of programming and gradually delved deeper into data structures and algorithms. Working on real-world projects helped me understand the practical applications of what I was learning, and I gained confidence in solving problems and explaining my ideas. When I had the opportunity to interview at New Relic, I gave it my best. The first round went well, which was a huge boost to my confidence. Although I didn’t clear the second round, the experience taught me a lot about how to approach interviews and the areas I need to work on. It was a reminder that every attempt is a step forward, whether it leads to success or valuable lessons. This experience has motivated me to continue improving and preparing for future opportunities. With consistent effort and a growth mindset, I’m confident I’ll achieve my goals and inspire others to keep learning and never give up.
Application story
I applied for the Associate Software Engineer position after receiving an email from the recruiter with a link to the career portal. I filled out the application and submitted it. Shortly afterward, I received a confirmation email from the recruitment team thanking me for applying. Then, I received a call from the recruiter, who informed me that my interview had been scheduled for that day.
Why selected/rejected for the role?
I was not selected for the role because I struggled to explain the optimized solutions to certain problems and lacked confidence during the interview. This experience taught me the importance of being well-prepared to articulate my thought process clearly and confidently.
Preparation
Duration: 6 months
Topics: Data Structures, OOPS, Java, Spring Boot, SQL
Tip
Tip

Tip 1: Focus on understanding the basics of data structures and algorithms, rather than just memorizing solutions.
Tip 2: Work on real-world projects to gain hands-on experience and improve your problem-solving skills.
Tip 3: Practice explaining your approach and solutions clearly, as communication is key in interviews.

Application process
Where: Referral
Eligibility: No criteria (Salary: 7-9 LPA)
Resume Tip
Resume tip

Tip 1: Highlight relevant projects and skills that align with the job you're applying for.

Tip 2: Keep your resume concise by focusing on your achievements and technical skills, and avoid unnecessary details.

Interview rounds

01
Round
Medium
Video Call
Duration45 minutes
Interview date13 Nov 2024
Coding problem2

Round 1 Description:

  • Timing: The interview was scheduled during the day, not late at night.
  • Environment: The interview took place in a professional and focused setting. I felt comfortable and was able to concentrate.
  • Significant Activity: The interview began with an introduction and transitioned into a discussion about my projects. I was asked to explain the architecture of one of my projects, followed by solving two coding problems.
  • Interviewer: The interviewer was professional and supportive, providing clear instructions. They maintained a calm and respectful tone throughout, which helped to ease the pressure during the interview.

1. Reverse the Array

Easy
15m average time
85% success
0/40
Asked in companies
GartnerInfo Edge India (Naukri.com)HCL Technologies

Given an array/list 'ARR' of integers and a position ‘M’. You have to reverse the array after that position.

Example:

We have an array ARR = {1, 2, 3, 4, 5, 6} and M = 3 , considering 0 
based indexing so the subarray {5, 6} will be reversed and our 
output array will be {1, 2, 3, 4, 6, 5}.
Problem approach

Step 1: I began by understanding the problem and realizing that the task was to reverse the array in place without using extra space for another array.

Step 2: My initial approach was to use a temporary array to store the reversed elements. However, the interviewer suggested that reversing the array in place would be more efficient, as it wouldn't require extra space.

Step 3: I then proposed a solution using two pointers: one starting from the beginning of the array and the other from the end. I swapped the elements at these pointers and moved them towards each other until they met in the middle.

Step 4: I explained how this solution would work efficiently in O(N) time with O(1) space complexity since we were only swapping elements within the original array.

Step 5: The interviewer was satisfied with this solution because it was both optimal and simple.

Try solving now

2. Longest Palindromic Substring

Moderate
35m average time
78% success
0/80
Asked in companies
GrabMicrosoftAmazon

You are given a string ‘S’ of length ‘N’.

You must return the longest palindromic substring in ‘S’.

Note: Return any of them in case of multiple substrings with the same length.

Example:

Input: ‘S’ =’badam’

Output: ‘ada’

‘ada’ is the longest palindromic substring, and it can be proved that it is the longest possible palindromic substring.
Problem approach

Step 1: First, I understood that the problem was to find the longest palindromic substring in a given string.

Step 2: I recognized that a palindrome reads the same forward and backward. I realized I could utilize a method that expands around the center of the string, as every palindrome has a center.

Step 3: I decided to use the Expand Around Center approach. For each character (or pair of consecutive characters) in the string, I would expand outward to check for a palindrome.

Step 4: I iterated through each character (for odd-length palindromes) and each pair of consecutive characters (for even-length palindromes). For each center, I expanded outward as long as the characters on both sides matched.

Step 5: During each expansion, I checked whether the length of the current palindrome was greater than the previously found palindromes and updated the result accordingly.

Step 6: I repeated this process for all possible centers in the string to ensure that both even and odd-length palindromes were checked.

Step 7: Finally, I returned the longest palindrome found.

Try solving now
02
Round
Medium
Video Call
Duration45 minutes
Interview date21 Nov 2024
Coding problem3

Round 2 Description:

Timing: The interview took place during the day, not late at night.
Environment: The environment was professional yet relaxed, which made it easier to focus. The discussion was more interactive in this round.
Significant Activity: The round began with an introduction, followed by a deep dive into my projects. I was then given a coding problem to remove duplicate elements from an array. After solving the problem, the interviewer discussed various data structures such as Quick Sort, stacks, queues, and their real-life applications. The conversation also shifted to AI topics, including how ChatGPT works.
Interviewer: The hiring manager was friendly and engaging, taking the time to explain each topic in detail. They were patient and gave me ample time to think and respond to the questions. The interview felt more like a discussion than an interrogation, which helped me stay at ease.

1. Remove duplicates from Sorted Array

Easy
15m average time
85% success
0/40
Asked in companies
UnacademyAmerican ExpressGoldman Sachs

You are given a sorted integer array 'arr' of size 'n'.


You need to remove the duplicates from the array such that each element appears only once.


Return the length of this new array.


Note:
Do not allocate extra space for another array. You need to do this by modifying the given input array in place with O(1) extra memory. 


For example:
'n' = 5, 'arr' = [1 2 2 2 3].
The new array will be [1 2 3].
So our answer is 3.
Problem approach

Tip 1: Use a HashSet for Tracking Unique Elements
The first step is to create a HashSet to store the elements we've already seen. As we iterate through the array, we can check if an element is already in the HashSet. If it’s not, we add it to the HashSet and place it in the array. This ensures that only unique elements are added.

Tip 2: Use Two Pointers
A more space-efficient solution is to use two pointers. One pointer (say, i) iterates through the array, while the second pointer (say, j) keeps track of where to insert the next unique element. Whenever we find a new unique element, we place it at position j and increment j. This ensures that only unique elements are kept in the array.

Tip 3: Time and Space Complexity
The time complexity of this approach is O(N), since we are iterating through the array once. The space complexity is O(N) in the case of the HashSet approach, but using the two-pointer technique, the space complexity is reduced to O(1), making it more efficient.

Try solving now

2. Data Structure and Algorithm

What is Quick Sort, and what are stacks and queues? Can you also tell me about their real-life applications?

3. Technical Question

Explain how ChatGPT works.

Problem approach

Tip 1: Read up on NLP (Natural Language Processing) techniques such as tokenization, language modeling, and sequence prediction to understand how the model generates human-like responses.
Tip 2: Explore the use of large-scale pre-training and fine-tuning for specific tasks to improve the model's accuracy and relevance in various scenarios.

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 recursion?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
4657 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Amazon
960 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
6450 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3451 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Associate Software Engineer
3 rounds | 10 problems
Interviewed by Amdocs
2370 views
0 comments
0 upvotes
company logo
Associate Software Engineer
3 rounds | 2 problems
Interviewed by Ernst & Young (EY)
2671 views
0 comments
0 upvotes
company logo
Associate Software Engineer
3 rounds | 15 problems
Interviewed by Ernst & Young (EY)
2347 views
0 comments
0 upvotes