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

Technical Content Engineer

HackerEarth
upvote
share-icon
4 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Computer Network, DBMS, Operating System, Data Structures and Algorithms.
Tip
Tip

Tip 1 : Clear and simple resume
Tip 2 : Good in DSA 
Tip 3 :Good communication skills

Application process
Where: Hackerearth
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1 : Mention achievements ion clear way
Tip 2 : Simple resume.
Tip 3 : Work on technical subjects and mention in resume as well

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date20 Mar 2022
Coding problem1

Questions were asked from core computer science technical subjects. And 1 easy medium problem.

1. All prime numbers

Moderate
0/80
Asked in companies
Urban Company (UrbanClap)QualcommHackerEarth

Given an integer N, print all the prime numbers that lie in the range 2 to N (both inclusive).

Try solving now
02
Round
Easy
Video Call
Duration60 minutes
Interview date23 Mar 2022
Coding problem2

Medium questions asked in interview

1. Most Frequent Word

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

You are given two strings 'A' and 'B' of words. Your task is to find out the most frequent and lexicographically smallest word in string 'A', which is not present in string 'B'. If no such word is present in 'A', then return -1.

Note:

1. A word is a sequence of one or more lowercase characters.

2. Words are separated by a single whitespace character.
Example:
For the given string 'A' = “coding ninjas coding ninjas” and 'B' = “data structures and algorithms”, so both the word 'coding' and 'ninjas' are not present in string 'B' and occur two times each, but the word “coding” is lexicographically smaller than the word “ninjas”. So the answer is “coding”.
Problem approach

1. I took the help of HashSet.
2. Serially, I was storing a character if HashSet did not contain that character.
3. When I encountered the first character which was already defined, then simply I returned that character.

Try solving now

2. Find all occurrences

Moderate
35m average time
60% success
0/80
Asked in companies
Goldman SachsMicrosoftOracle

You are given a 'M' x 'N' matrix of characters, 'CHARACTER_MATRIX' and a string 'WORD'. Your task is to find and print all occurrences of the string in the given character matrix. You are allowed to search the string in all eight possible directions, i.e. North, South, East, West, North-East, North-West, South-East, South-West.

Note: There should not be any cycle in the output path. The entire string must lie inside the matrix boundary. You should not jump across boundaries, i.e. from row 'N' - 1 to 0 or column 'N' - 1 to 0 or vice versa.

Example:

Consider below matrix of characters,
[ 'D', 'E', 'X', 'X', 'X' ]
[ 'X', 'O', 'E', 'X', 'E' ] 
[ 'D', 'D', 'C', 'O', 'D' ]
[ 'E', 'X', 'E', 'D', 'X' ]
[ 'C', 'X', 'X', 'E', 'X' ]

If the given string is "CODE", below are all its occurrences in the matrix:

'C'(2, 2) 'O'(1, 1) 'D'(0, 0) 'E'(0, 1)
'C'(2, 2) 'O'(1, 1) 'D'(2, 0) 'E'(3, 0)
'C'(2, 2) 'O'(1, 1) 'D'(2, 1) 'E'(1, 2)
'C'(2, 2) 'O'(1, 1) 'D'(2, 1) 'E'(3, 0)
'C'(2, 2) 'O'(1, 1) 'D'(2, 1) 'E'(3, 2)
'C'(2, 2) 'O'(2, 3) 'D'(2, 4) 'E'(1, 4)
'C'(2, 2) 'O'(2, 3) 'D'(3, 3) 'E'(3, 2)
'C'(2, 2) 'O'(2, 3) 'D'(3, 3) 'E'(4, 3)
Problem approach

1. I took the help of HashMap.
2. Serially, I was storing a character if HashMap did not contain that character.
3. When I encountered the first character which was already defined, then I was iterating to hash map and whoever frequency was more than or equal to 2 I was storing in ArrayList.
4. Returned the ArrayList.

Try solving now
03
Round
Easy
Video Call
Duration40 minutes
Interview date25 Mar 2022
Coding problem2

This was more about the managerial round.

1. Operating System Question

What is the Round robin scheduling algorithm?

Problem approach

Tip 1 : Always answer in STAR method
 

2. Operating System Question

What is memory management in OS?

04
Round
Easy
HR Round
Duration20 minutes
Interview date27 Mar 2022
Coding problem1

1. Basic HR Questions

1. Why HackerEarth?
2. Where do you want to see yourselves after 5 years?
3. Are you any member of your college coding team?

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
Software Engineer
2 rounds | 5 problems
Interviewed by HackerEarth
1090 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
3452 views
0 comments
0 upvotes