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

Associate Professional

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

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Linked lists, Array, Strings, Trees, Pointers, OOP
Tip
Tip

Tip 1 : Don't get demotivate if you stuck in a problem.
Tip 2 : Practice daily, if not possible then do at least for half or an hour.
Tip 3 : Keep a Project ready from head to toe.

Application process
Where: Campus
Eligibility: 7.5 CGPA
Resume Tip
Resume tip

Tip 1 : Be thorough with what you mention in resume and never write false.
Tip 2 : Mention a project and courses you have done.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration60 minutes
Interview date1 Apr 2022
Coding problem1

1. Intersection of Two Linked Lists

Easy
25m average time
73% success
0/40
Asked in companies
Hewlett Packard EnterpriseSamsungIntuit

You are given two Singly Linked Lists of integers, which may have an intersection point.

Your task is to return the first intersection node. If there is no intersection, return NULL.


Example:-
The Linked Lists, where a1, a2, c1, c2, c3 is the first linked list and b1, b2, b3, c1, c2, c3 is the second linked list, merging at node c1.

alt.txt

Problem approach

So the intersection of sets … additional info could be important …

If the lists are sorted (the same way), you could traverse them simultaneously (moving the pointer “to smaller” and copy elements to the result list when smaller is simultaneously in both lists ( Θ(n) solution).

If the lists are not sorted, making a hashmap would be faster than trivial Θ(n2) solution or a solution sorting them first Θ(nlogn) .

So traverse one list and update the hashmap addressed by the keys to contain the number of elements with the given key in the traversed portion of the list.

Then traverse the other list and if the key is not in the hashmap with a count greater than 0, ignore it. In the other case decrement the count and copy the element to the result list. The hashmap can be discarded after the second traversal.

In the case you know there are no duplicate keys in the input lists, you could use a hashset rather the hashmap as you need not border with maintaining counters. … Θ(n) solution (randomized by the hash function choice).

Try solving now
02
Round
Easy
Video Call
Duration30 minutes
Interview date15 Apr 2022
Coding problem2

Basic C++ Type questions
the timing was afternoon and the interviewer was very cool guy
the interviewer was cross questioning me again and again but I was able to answer
The interview went very well and he advised me to improve communication skills rest my knowledge is good.

1. Basic DSA Questions

What is a data structure?

What are abstract data types?

 

2. DS Question

Explain the working of HashMap?


 

 

Problem approach

A hash table (or hashmap) is essentially a map from one object to another. The most basic example of a hashmap is an Array, since an Array maps integers to data elements.

The elements which are mapped from are termed as keys (in an array, the integer indices act as keys) and the elements that are mapped to are called values (in an array, the data elements are values).

Generally, the keys need to be unique in a hashmap (else on quering a key, the language can’t determine which value to return, for instance mapping the index 0 of an array to 2 different objects).

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
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
908 views
0 comments
0 upvotes
Associate Professional
2 rounds | 4 problems
Interviewed by DXC Technology
837 views
0 comments
0 upvotes
Associate Professional
2 rounds | 4 problems
Interviewed by DXC Technology
400 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Associate Professional
3 rounds | 3 problems
Interviewed by CIS - Cyber Infrastructure
515 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
490 views
0 comments
0 upvotes