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

Java Developer

Barclays
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 Months
Topics: Data Structures and Algorithms, Core Java, Spring Boot, Angular 9, DBMS
Tip
Tip

Tip 1 : Prepare about your college projects and company projects as well if you have been in the industry.
Tip 2 : Expect OOPS questions, and get a clear understanding of Java 8 features. Also, get your basics clear on DSA
Tip 3 : Good behavioral questions can be expected in the managerial round, where they evaluate the RISES principles which Barclays follows.

Application process
Where: Naukri
Eligibility: No criteria as such
Resume Tip
Resume tip

Tip 1 : Have a clean resume highlighting your key skills, aligning with the role you are applying.
Tip 2 : Don't put a single false word in the resume, because there is a strict background check.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 Minutes
Interview date23 Jan 2022
Coding problem2

Contained 30 MCQs from the topics Java, Python, DBMS, and OS, and 2 Coding Questions

1. All prime numbers

Moderate
0/80
Asked in companies
BarclaysUberUrban Company (UrbanClap)

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

Problem approach

1. Created a method that checks if the number is prime or not.
2. Ran a loop from 0 to X, and checked for each number, if it is prime added to the sum
3. Returned the answer as a sum

Try solving now

2. Boundary Traversal

Hard
20m average time
85% success
0/120
Asked in companies
Morgan StanleyMicrosoftSalesforce

You are given a binary tree having 'n' nodes.


The boundary nodes of a binary tree include the nodes from the left and right boundaries and the leaf nodes, each node considered once.


Figure out the boundary nodes of this binary tree in an Anti-Clockwise direction starting from the root node.


Example :
Input: Consider the binary tree A as shown in the figure:

alt text

Output: [10, 5, 3, 7, 18, 25, 20]

Explanation: As shown in the figure

The nodes on the left boundary are [10, 5, 3]

The nodes on the right boundary are [10, 20, 25]

The leaf nodes are [3, 7, 18, 25].

Please note that nodes 3 and 25 appear in two places but are considered once.
Problem approach

1. Print left boundary
2. Print leaf nodes
3. Print right boundary in the reverse order

Try solving now
02
Round
Medium
Video Call
Duration60 Minutes
Interview date25 Jan 2022
Coding problem2

Questions on DSA
Questions on Java 8 features
OOPS Concepts
DBMS Questions
Questions related to College projects and previous company projects

1. N Queens

Hard
55m average time
35% success
0/120
Asked in companies
Samsung ElectronicsGrabGoogle

You are given an integer 'N'. For a given 'N' x 'N' chessboard, find a way to place 'N' queens such that no queen can attack any other queen on the chessboard.

A queen can be killed when it lies in the same row, or same column, or the same diagonal of any of the other queens. You have to print all such configurations.

Problem approach

Initially told the basic approach using recursion and then moved to backtracking to optimize the solution.

Try solving now

2. Merge Sort

Easy
15m average time
85% success
0/40
Asked in companies
HCL TechnologiesPayPalPaytm (One97 Communications Limited)

Given a sequence of numbers ‘ARR’. Your task is to return a sorted sequence of ‘ARR’ in non-descending order with help of the merge sort algorithm.

Example :

Merge Sort Algorithm -

Merge sort is a Divide and Conquer based Algorithm. It divides the input array into two-parts, until the size of the input array is not ‘1’. In the return part, it will merge two sorted arrays a return a whole merged sorted array.

subsequence

The above illustrates shows how merge sort works.
Note :
It is compulsory to use the ‘Merge Sort’ algorithm.
Problem approach

Explained the working of merge sort using an example and dry run the code. Made tree diagrams to make it more clear

Try solving now
03
Round
Medium
HR Round
Duration60 Minutes
Interview date25 Mar 2022
Coding problem1

Asked questions related to DBMS, AWS, my work in the previous company, my personal projects, and good behavioral questions

1. HR Questions

Problem approach

Tip 1 : Get to know about Barclays before attending interviews and their RISES principles
Tip 2 : Be ready to answer behavioral questions.
Tip 3 : Act Confident

Here's your problem of the day

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

Skill covered: Programming

How do you create a function in JavaScript?

Choose another skill to practice
Start a Discussion
Similar interview experiences
company logo
SDET-2
5 rounds | 5 problems
Interviewed by Barclays
1712 views
0 comments
0 upvotes
company logo
SDE-3
3 rounds | 4 problems
Interviewed by Barclays
1187 views
0 comments
0 upvotes
company logo
Salesforce Developer
3 rounds | 3 problems
Interviewed by Barclays
1681 views
1 comments
0 upvotes
company logo
Graduate Engineer Trainee
2 rounds | 3 problems
Interviewed by Barclays
516 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Java Developer
3 rounds | 4 problems
Interviewed by SAP Labs
1607 views
0 comments
0 upvotes