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

SDE - 1

Atlassian
upvote
share-icon
1 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 5 months
Topics: DSA, Programming, C++, OS, DBMS, OOPS, Computer Network
Tip
Tip

Tip 1 : Be proficient in any 1 programming language.
Tip 2 : Practice DSA thoroughly.
Tip 3 : Have a clear understanding of core subjects.

Application process
Where: Linkedin
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1 : Resume should be 1 page long.
Tip 2 : Focus more on skills and projects.

Interview rounds

01
Round
Medium
Online Coding Test
Duration90 minutes
Interview date13 Sep 2021
Coding problem3

There were 3 DSA based problems and the time was 90 minutes. Out of 3 problems, 1 was easy and other two were medium/hard questions.

1. Letter Combinations of a Phone Number

Moderate
35m average time
65% success
0/80
Asked in companies
AmazonOlaGoldman Sachs

Given a string S containing digits from 2 to 9 inclusive. Your task is to find all possible letter combinations that the number could represent.

A mapping from Digits to Letters (just like in Nokia 1100) is shown below. Note that 1 does not map to any letter.

example

Problem approach

This can be solved using recursion. It can be observed that each digit can represent 3 to 4 different alphabets (apart from 0 and 1). Map the number with its string of probable alphabets, i.e 2 with “abc”, 3 with “def” etc. Now the recursive function will try all the alphabets, mapped to the current digit in alphabetic order, and again call the recursive function for the next digit and will pass on the current output string.

Algorithm: 

Map the number with its string of probable alphabets, i.e 2 with “abc”, 3 with “def” etc.
Create a recursive function which takes the following parameters, output string, number array, current index, and length of number array
If the current index is equal to the length of the number array then print the output string.
Extract the string at digit[current_index] from the Map, where the digit is the input number array.
Run a loop to traverse the string from start to end
For every index again call the recursive function with the output string concatenated with the ith character of the string and the current_index + 1.

Time Complexity: O(4^n), where n is a number of digits in the input number. .
Space Complexity:O(1).

Try solving now

2. Count Strongly Connected Components in a directed graph

Hard
40m average time
65% success
0/120
Asked in companies
Morgan StanleyMedia.netAtlassian

You are given an unweighted directed graph having 'V' vertices and 'E' edges. Your task is to count the number of strongly connected components (SCCs) present in the graph.

A directed graph is said to be strongly connected if every vertex is reachable from every other vertex. The strongly connected components of a graph are the subgraphs which are themselves strongly connected.

Note :
Use zero-based indexing for the vertices.

The given graph doesn’t contain any self-loops.
Problem approach

I used Kosaraju’s algorithm to find the strongly connected components (SCCs) in the directed graph.

Try solving now

3. Minimum Number Of Taps To Water Garden

Hard
15m average time
85% success
0/120
Asked in companies
AppleBNY MellonOla

The gardener wants to water the garden by opening the minimum number of taps. The garden is one-dimensional along the x-axis of length N i.e. the garden starts from point 0 and ends at point N. There are N + 1 tap located at points [0, 1, 2, …, N] in the garden.

You are given an integer N, and an array named “ranges” of size N + 1(0-indexed). The ith tap, if opened, can water the gardener from point (i - ranges[i]) to (i + ranges[i]) including both. The task is to find the minimum number of taps that should be open to water the whole garden, return -1 if the garden can not be watered.

Example :

Watering The Garden

Follow Up:
Can you solve the problem in O(N) time?
Problem approach

I solved this problem using a greedy approach.

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

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
5 rounds | 5 problems
Interviewed by Atlassian
5331 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by Atlassian
2078 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 3 problems
Interviewed by Atlassian
1324 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 6 problems
Interviewed by Atlassian
2476 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114579 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57825 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34961 views
7 comments
0 upvotes