Given an array A, find the count of the ordered pairs. An ordered pair is defined as any number A[j], such that A[j]>A[i] and j>i. You have to do this in optimal time.
Softwareentwickler Java Interview Questions
513,299 softwareentwickler java interview questions shared by candidates
Write a method to compute if a string is a palindrome, disregarding spaces.
You are given 8 identical looking balls. One of them is heavier than the rest of the 7 (all the others weigh exactly the same). You a provided with a simple mechanical balance and you are asked to find out the minimum amount of weighings necessary to identify the heavier ball.
Design an algorithm to search an element in a singly linked list in O(1) complexity without using any other data-structure.
Write a code for finding a certain element in an unsorted array assuming element definitely exists. How can we improve the efficiency?
Write a non-recursive traversal of a Binary Search Tree using constant space and O(n) run time.
write a sub string in a string
Sorting Algorithms Optimizations from 2 loops to just 1 loop
- Given a string, how would you determine if that string contains a palindrome?
What is stack?
Viewing 2061 - 2070 interview questions