
Thales

Thales Software Engineer Interview Questions and Answers
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
Reverse a given string containing characters from [a-z], [A-Z], [0-9], and special characters.
Iterate through the characters of the string from end to start and append them to a new string to get the reversed string.
Use built-in functions like reverse() or StringBuilder in languages like Java for efficient reversal.
Handle special characters and numbers along with alphabets while reversing the string.
Ensure to print each reversed string on a separate line as per the output for...read more
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
Identify and return all characters in a string that appear more than once along with their frequency.
Iterate through the string and count the frequency of each character using a hashmap.
Return characters with frequency greater than 1 in an array of tuples.
The cut command in Linux is used to extract sections from each line of input.
Used to cut out specific sections of text from a file or input stream
Can specify the delimiter used to separate fields
Options include -c for characters, -f for fields, and -d to specify the delimiter
Example: cut -d',' -f1,3 file.txt
The Find command in Linux is used to search for files and directories based on specified criteria.
Used to search for files and directories in a specified directory
Criteria can include file name, size, permissions, and more
Can be combined with other commands like -exec to perform actions on found files
Q5. 2. reverse a string, find a duplicate in a string.
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.
Q6. Sorting Algorithm
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++.
Interview Process at Thales Software Engineer

Top Software Engineer Interview Questions from Similar Companies








Reviews
Interviews
Salaries
Users/Month

