Add office photos
Employer?
Claim Account for FREE

Thales

3.6
based on 365 Reviews
Filter interviews by

NIIT Interview Questions and Answers

Updated 5 Feb 2024

Q1. Reverse a String Problem Statement

Given a string STR containing characters from [a-z], [A-Z], [0-9], and special characters, determine the reverse of the string.

Input:

The input starts with a single integer '...read more
Add your answer

Q2. Duplicate Characters in a String

Given a string 'S' of length 'N', identify and return all the characters in the string that appear more than once along with their frequency.

Example:

Input:
 N = 5
S = 'GEEK'
O...read more
Add your answer
Q3. What is the cut command in Linux and how do you use it?
Add your answer
Q4. What is the Find command in Linux and how is it used?
Add your answer
Discover NIIT interview dos and don'ts from real experiences

Q5. 2. reverse a string, find a duplicate in a string.

Ans.

Reverse a string and find a duplicate in an array of strings.

  • To reverse a string, we can use the built-in reverse() method or loop through the string and append each character to a new string in reverse order.

  • To find a duplicate in an array of strings, we can use a hash table to keep track of the frequency of each string and return the first string with a frequency greater than 1.

Add your answer

Q6. Sorting Algorithm

Ans.

Sorting algorithm is a method of arranging elements in a specific order.

  • Common sorting algorithms include bubble sort, insertion sort, selection sort, merge sort, quick sort, and heap sort.

  • The choice of sorting algorithm depends on the size of the data set, the data type, and the desired time complexity.

  • Sorting algorithms can be implemented in various programming languages such as Java, Python, and C++.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at NIIT

based on 2 interviews
1 Interview rounds
Technical Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Software Engineer Interview Questions from Similar Companies

4.0
 • 25 Interview Questions
4.1
 • 15 Interview Questions
3.5
 • 11 Interview Questions
3.9
 • 10 Interview Questions
3.5
 • 10 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter