Senior Technical Team Member
Senior Technical Team Member Interview Questions and Answers
Q1. Given an array, how can you rotate it by n positions?
Rotate an array of strings by n positions
Create a new array and copy elements from original array starting from index n to the end, then copy elements from index 0 to n-1
Alternatively, you can use array slicing to achieve the rotation
Example: Original array ['a', 'b', 'c', 'd', 'e'], rotate by 2 positions would result in ['c', 'd', 'e', 'a', 'b']
Q2. What is the implementation of a palindrome check in Java without using the reverse() function?
Implementing a palindrome check in Java without using the reverse() function.
Create a function that takes a string as input.
Use two pointers, one starting from the beginning of the string and the other from the end.
Compare characters at the two pointers and move them towards each other until they meet or cross.
If all characters match, the string is a palindrome.
Example: 'racecar' is a palindrome.
Example: 'hello' is not a palindrome.
Q3. What is the algorithm to reverse a singly linked list?
The algorithm to reverse a singly linked list involves iterating through the list and changing the pointers to reverse the direction of the links.
Start with three pointers: current, previous, and next.
Iterate through the list, updating the next pointer to point to the previous node.
Move the previous pointer to the current node and the current pointer to the next node.
Continue until the end of the list is reached, then update the head of the list to the last node visited.
Q4. Sorting arrays from 0's,1 in java , No sorting algorithm to be used Difficulty: Easy
Use counting method to sort array of strings with 0's and 1's.
Create a count array to store the frequency of 0's and 1's.
Update the original array based on the count array.
Example: Input array - ['0', '1', '0', '1', '1'], Output array - ['0', '0', '1', '1', '1']
Q5. Difference between HTTP vs HTTPS indication
HTTPS provides secure communication over the internet using encryption, while HTTP does not.
HTTPS uses SSL/TLS encryption to secure data transmission, while HTTP does not.
HTTPS URLs begin with 'https://' and use port 443, while HTTP URLs begin with 'http://' and use port 80.
HTTPS ensures data integrity and authentication, while HTTP does not provide these security measures.
Q6. Write a SQL query for employee table having
SQL query to retrieve data from employee table
Use SELECT statement to retrieve data
Specify the columns you want to retrieve
Use FROM clause to specify the table name
Add any conditions using WHERE clause if needed
Share interview questions and help millions of jobseekers 🌟
Q7. Last entry of a table in sql query
Use ORDER BY and LIMIT to get last entry in SQL query
Use ORDER BY column_name DESC to sort in descending order
Use LIMIT 1 to get only the last entry
Q8. Internal functioning of hash map
Hash map is a data structure that stores key-value pairs and uses a hash function to map keys to their corresponding values.
Hash map uses a hash function to determine the index of the key-value pair in the underlying array.
Collisions can occur when two keys hash to the same index, which can be resolved using techniques like chaining or open addressing.
Hash maps offer constant time complexity O(1) for insertion, deletion, and lookup operations on average.
Example: HashMap<Strin...read more
Q9. SCCP layer explanation
SCCP layer is a signaling protocol used in telecommunication networks for call setup and management.
SCCP stands for Signaling Connection Control Part
It is used in SS7 (Signaling System 7) networks
SCCP provides additional functionality compared to MTP (Message Transfer Part)
It handles addressing, routing, and error detection in the network
Examples of SCCP messages include connection request, connection confirm, and connection release
Interview experiences of popular companies
Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Reviews
Interviews
Salaries
Users/Month