Given a string, that contains special character together with alphabets (‘a’ to ‘z’ and ‘A’ to ‘Z’), reverse the string in a way that special characters are not affected. Examples: Input: str = "a,b$c" Output: str = "c,b$a" Note that $ and , are not moved anywhere. Only subsequence "abc" is reversed Input: str = "Ab,c,de!$" Output: str = "ed,c,bA!$"
Software Interview Questions
551,241 software interview questions shared by candidates
What is difference between Echo and Print??
Find the Longest Palindrome
How can you tell if a linked list is circular (goes on forever because it connects to a previous node)?
given an unordered list of numbers find all pairs that add up to x
1) circular linked list 2)adding index 0 to till same array {2,4,4,3,1} so ans is 2+4 = 6 3) adding positive and negative number [array] 4) put user defind value passng arguments to the define function and solving the math problem.
Reverse the string
To implement a binary tree which has back traversing support
There is an array of 100 elements where one element is repeated. What is the complexity of finding the element?
1. write a programme to Calculate the angle between hour hand and minute hand. 2.It was related to pattern of stars(*).
Viewing 2251 - 2260 interview questions