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

Associate Professional

DXC Technology
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Journey
Overall , the experience was good. It was my first interview. However , as per the level of the compensation , I would deem the interview as more than required as the online assessment contained multiple questions which were above the level & the interview too was not very easy.
Application story
The company came to my campus for recruitment. It had no CGPA cutoff & had 2 rounds only. Firstly , the online assessment , and secondly , the interview.
Why selected/rejected for the role?
I was able to solve the puzzles / coding questions in the exam & thus I was selected. The online assessment also contained multiple choice questions , which were of low to medium level difficulty which were okay to solve. The coding questions however had rich OOPS concepts being imbibed in them.
Preparation
Duration: 1 month
Topics: OOPS , Data Structures and Algorithms , DBMS , C++ , Puzzles
Tip
Tip

Tip 1 : Be thorough with the content of your resume
Tip 2 : Make sure to explain your projects well
Tip 3 : Practice some coding questions

Application process
Where: Campus
Eligibility: N/A
Resume Tip
Resume tip

Tip 1 : Add some projects positively
Tip 2 : Mention your college coursework

Interview rounds

01
Round
Easy
Online Coding Interview
Duration60 minutes
Interview date18 Sep 2021
Coding problem2

Had around 30 MCQs , and 5-6 coding questions which needed high level OOPS concepts.

1. Sort Array

Moderate
15m average time
85% success
0/80
Asked in companies
HSBCHCL TechnologiesOYO

You are given an array consisting of 'N' positive integers where each integer is either 0 or 1 or 2. Your task is to sort the given array in non-decreasing order.

Note :
1. The array consists of only 3 distinct integers 0, 1, 2.
2. The array is non-empty.
Problem approach

Firstly , I gave an approach of swapping the elements on the basis of their values i.e. Bubblesort , but this should've been done for all the elements , thus resulting in O(n2) complexity. Then , I was asked to optimize the solution & then I gave the MergeSort approach which runs in O(nlogn) complexity where n is the number of elements in the array.

Try solving now

2. Puzzle

Frog and Well Puzzle : A frog is at the bottom of a 30 meter well. Each day he summons enough energy for one 3 meter leap up the well. Exhausted, he then hangs there for the rest of the day. At night, while he is asleep, he slips 2 meters backwards. How many days does it take him to escape from the well?

So the resultant distance travelled by frog is 1 meter per day. Therefore till 27th day , it travels 27 meters but on the 28th day , it jumps & crosses the boundary of the well & thus does not slip back resulting in crossing the entire well in 28 days.

Problem approach

Tip 1: Listen the question properly
Tip 2: Ask clarifying questions
Tip 3: Dry run the puzzle to get better understanding

02
Round
Easy
Video Call
Duration60 minutes
Interview date30 Sep 2021
Coding problem2

Some basic coding questions were asked such as Palindrome checking , coding the string characters to numbers etc. Along with some puzzles

1. Check If The String Is A Palindrome

Easy
10m average time
90% success
0/40
Asked in companies
IntuitSprinklrCIS - Cyber Infrastructure

You are given a string 'S'. Your task is to check whether the string is palindrome or not. For checking palindrome, consider alphabets and numbers only and ignore the symbols and whitespaces.

Note :

String 'S' is NOT case sensitive.

Example :

Let S = “c1 O$d@eeD o1c”.
If we ignore the special characters, whitespaces and convert all uppercase letters to lowercase, we get S = “c1odeedo1c”, which is a palindrome. Hence, the given string is also a palindrome.
Problem approach

This is the very basic problem. Keep 2 pointers , one at beginning and one at end , traverse till half of the string and keep comparing the characters. If at any time the characters become not same , then it is not Palindrome , else the string is Palindrome.

Try solving now

2. String Conversion

Moderate
15m average time
85% success
0/80
Asked in companies
DelhiveryIBMDell Technologies

You have given two strings 'A' and ‘B’ of length ‘N’ each which only consists of lowercase English letters. You have also given an integer ‘K’.

Your task is to determine if it is possible to convert string ‘A’ into ‘B’ after performing two types of operations on it:

1. Choose an index i (1 <= i <= N - 1) and swap A[i] and A[i+1].
2. Choose an index i (1 <= i <= N - K + 1) and if A[i], A[i+1],. . . . , A[i+K-1] all are equal to some character x (x != ‘z’), then you can replace each one with the next character (x + 1) , i.e. ‘a’ is replaced by ‘b’, ‘b’ is replaced by ‘c’ and so on.

Note:

You are allowed to perform any operation any number of times(possibly zero) only on string 'A'.
For example-
If the given strings are A = ‘xbbx’ and B = ‘xddx’ and K is given as 2. Then it is possible to convert string A into B by applying the second operation two times on index 2 (1 based indexing).
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

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
Associate Professional
2 rounds | 2 problems
Interviewed by DXC Technology
0 views
0 comments
0 upvotes
Associate Professional
3 rounds | 5 problems
Interviewed by DXC Technology
925 views
0 comments
0 upvotes
Associate Professional
2 rounds | 4 problems
Interviewed by DXC Technology
424 views
0 comments
0 upvotes
Associate Professional
2 rounds | 8 problems
Interviewed by DXC Technology
12 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Associate Professional
3 rounds | 3 problems
Interviewed by CIS - Cyber Infrastructure
529 views
0 comments
0 upvotes
company logo
Associate Professional
4 rounds | 6 problems
Interviewed by CIS - Cyber Infrastructure
0 views
0 comments
0 upvotes
company logo
Associate Professional
3 rounds | 9 problems
Interviewed by CIS - Cyber Infrastructure
502 views
0 comments
0 upvotes