How to get the k smallest element in O(klogk) time
Engineer Developer Interview Questions
467,789 engineer developer interview questions shared by candidates
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!$"
What is difference between Echo and Print??
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?
Use single loop instead of two loops to print a K-shaped pattern.
Viewing 1771 - 1780 interview questions