i
UST
Work with us
Filter interviews by
Counting characters using streams in Java
Use the chars() method to convert the string to an IntStream of characters
Use the count() method to count the number of characters in the stream
I applied via Naukri.com and was interviewed in Aug 2022. There was 1 interview round.
To check if a linked list is circular or linear, we need to traverse the list and check if it loops back to a previous node.
Traverse the linked list using two pointers, one moving one node at a time and the other moving two nodes at a time.
If the faster pointer catches up to the slower pointer, then the list is circular.
If the faster pointer reaches the end of the list without catching up to the slower pointer, then th...
Count the number of set bits in a given number.
Use bitwise AND operator with 1 to check if the rightmost bit is set.
Shift the number to right by 1 bit and repeat the process until the number becomes 0.
Keep a count of the number of set bits encountered.
Example: For number 5 (101 in binary), the answer is 2 as there are 2 set bits.
Example: For number 15 (1111 in binary), the answer is 4 as there are 4 set bits.
Segmentation fault is a type of error caused by accessing memory that “does not belong to you.”
It occurs when a program tries to access a memory location that it is not allowed to access.
It is often caused by programming errors such as accessing an array beyond its bounds.
It can also be caused by hardware problems such as faulty RAM or overheating.
Segmentation faults can be difficult to debug because they often occur i...
Top trending discussions
posted on 25 Feb 2022
NA
posted on 21 Dec 2022
Explanation of linked list reversal and RabbitMQ
Linked list reversal can be done iteratively or recursively
Iterative reversal involves changing the pointers of each node to point to the previous node
Recursive reversal involves calling the function recursively on the next node and changing its pointer to the current node
RabbitMQ is a message broker that allows for asynchronous communication between applications
It uses a...
posted on 11 May 2022
Very easy
To find length, frequency of each character and list of unique characters of a string.
Iterate through the string and count the frequency of each character using a hash table.
Create a list of unique characters by iterating through the hash table.
Calculate the length of the string using the built-in length function.
Return the frequency, length and list of unique characters as an array of strings.
To check if a string is palindrome or not.
Compare the first and last characters of the string and continue towards the middle until all characters have been compared.
If all characters match, the string is a palindrome.
If any characters do not match, the string is not a palindrome.
posted on 25 Sep 2021
I applied via Campus Placement
I applied via Campus Placement and was interviewed before Nov 2021. There were 2 interview rounds.
I applied via Company Website and was interviewed before Dec 2021. There were 3 interview rounds.
There are 2section of exam i.e English and Data structure
I applied via Company Website and was interviewed in Apr 2021. There was 1 interview round.
I applied via Company Website and was interviewed in Jul 2021. There was 1 interview round.
based on 1 interview experience
Difficulty level
Duration
based on 1 review
Rating in categories
Software Developer
2.2k
salaries
| ₹4.1 L/yr - ₹20.5 L/yr |
Senior Software Engineer
1.7k
salaries
| ₹12.8 L/yr - ₹23.9 L/yr |
Software Engineer
1.4k
salaries
| ₹3.4 L/yr - ₹19.6 L/yr |
System Analyst
1k
salaries
| ₹10.7 L/yr - ₹18 L/yr |
Senior Software Developer
939
salaries
| ₹10.5 L/yr - ₹17.5 L/yr |
Accenture
Wipro
Cognizant
Capgemini