Citiustech Pvt. Ltd. interview experience Real time questions & tips from candidates to crack your interview

Java Developer

Citiustech Pvt. Ltd.
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 4 months
Topics: Java, Cloud Computing, Data Structures, Algorithms, System Design, Aptitude, OOPS
Tip
Tip

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.

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

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Interview rounds

01
Round
Easy
Video Call
Duration60 minutes
Interview date13 Dec 2021
Coding problem2

This was a technical round with questions on Coding and core java based questions.

1. Calculate the frequency of each word in given string

Easy
10m average time
90% success
0/40
Asked in companies
HCL TechnologiesAmazonMakeMyTrip

You are given a string S of words. Your task is to count the occurrence of each word present in the string S. A word is a sequence of one or more non-space characters, and there can be multiple spaces between two words, and also there can be leading or trailing spaces in a string S.

For Example:
For the given string  “what we think we become”

“what”,” think”, and “become” occurs 1 time, and “we” occurs 2 times in the given string.
Problem approach

Hashing can be used to solve this problem. 
Use a hash map data structure to store the occurrence of each word in the string.
Traverse the string and for each element, check whether it is present in the map or not. If it is present, then update the frequency of the current word else insert the word with frequency 1.
Traverse in the map and print the frequency of each word.

Try solving now

2. Java Question

Difference between Comparable and Comparator

Problem approach

1) Comparable provides a single sorting sequence. In other words, we can sort the collection on the basis of a single element such as id, name, and price. The Comparator provides multiple sorting sequences. In other words, we can sort the collection on the basis of multiple elements such as id, name, and price etc.
2) Comparable affects the original class, i.e., the actual class is modified. Comparator doesn't affect the original class, i.e., the actual class is not modified.
3) Comparable provides compareTo() method to sort elements. Comparator provides compare() method to sort elements.
4) Comparable is present in java.lang package. A Comparator is present in the java.util package.
5) We can sort the list elements of Comparable type by Collections.sort(List) method. We can sort the list elements of Comparator type by Collections.sort(List, Comparator) method.

02
Round
Easy
Video Call
Duration60 minutes
Interview date13 Dec 2021
Coding problem3

This was a technical + managerial round.

1. Java Question

What are the advantages of multithreading in Java?

Problem approach

Advantages of Java Multithreading : 
1) It doesn't block the user because threads are independent and you can perform multiple operations at the same time.
2) You can perform many operations together, so it saves time.
3) Threads are independent, so it doesn't affect other threads if an exception occurs in a single thread.

2. AWS Question

Comparison between Azure and AWS cloud service providers.

Problem approach

1) AWS charges you on an hourly basis but Azure has a pricing model of per minute charge.


2) In terms of short term subscriptions, Azure has more flexibility but it is more expensive. Azure has a much better hybrid cloud support in comparison with AWS.
 

3) AWS provides direct connections whereas Azure express provides routing.
 

4) Although Azure is convenient in terms of set-up for Windows admin, AWS is highly configurable and feature-enriched.
 

5) In terms of flexibility, adaptability to the open-source community AWS seems to be leading. It also gets an additional point when it comes to revenue generation.

3. Puzzle

Suppose you have a 4 liter jug and a 9 liter bucket . The buckets have no measurement lines on them either. How could you measure exactly 6 liter using only those buckets and you have as much extra water as you need ?

Problem approach

Consider 2 buckets one 4L and other 9L. : Bucket 1 (4L) and Bucket2 (9L)
First fill the 9L bucket fully. : 0 L and 9 L
Pour the water into 4L bucket. : 4 L and 5 L
Empty the 4L bucket. : 0 L and 5 L
Repeat this twice. : 4 L and 1 L
Now you will left with 1L water in the 9L bucket : 0 L and 1 L
Now pour this 1L into the 4L bucket : 1 L and 0 L
Refill the 9L bucket. : 1 L and 9 L
Now pour the water from 9L into the 4L bucket until it fills up. : 4 L and 6 L
Now you are left with 6 L water in the 9L bucket.

03
Round
Easy
HR Round
Duration30 minutes
Interview date13 Dec 2021
Coding problem1

This was a typical HR round.

1. Basic HR Questions

1. What are your salary expectations?
2. What is your family background?
3. Share details of your previous job.

Problem approach

Tip 1 : The cross questioning can go intense some time, think before you speak.

Tip 2 : Be open minded and answer whatever you are thinking, in these rounds I feel it is important to have opinion.

Tip 3 : Context of questions can be switched, pay attention to the details. It is okay to ask questions in these round, like what are the projects currently the company is investing, which team you are mentoring. How all is the work environment etc.

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
Frontend Engineer
2 rounds | 6 problems
Interviewed by Citiustech Pvt. Ltd.
1353 views
0 comments
0 upvotes
Senior Software Engineer
1 rounds | 5 problems
Interviewed by Citiustech Pvt. Ltd.
1741 views
0 comments
0 upvotes
SDE - Intern
3 rounds | 3 problems
Interviewed by Citiustech Pvt. Ltd.
1006 views
0 comments
0 upvotes
Software Engineer
3 rounds | 3 problems
Interviewed by Citiustech Pvt. Ltd.
0 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Java Developer
3 rounds | 20 problems
Interviewed by Ernst & Young (EY)
9061 views
2 comments
0 upvotes
company logo
Java Developer
3 rounds | 4 problems
Interviewed by SAP Labs
3149 views
0 comments
0 upvotes
company logo
Java Developer
2 rounds | 2 problems
Interviewed by HCL Technologies
7166 views
0 comments
0 upvotes