What is the best way(big(O)) to search and replace an element in a multidimensional unsorted array retaining the structure and not transforming it into another form of data structure. Preferably ...
I am working on Market Basket Analysis. I have little bit confuse in this... I have some transaction data in which only one field is there. data is like.. Butter Bread Milk Apple Jam Bread ...
I got this programming problem to solve, but I couldn't understand what algorithm or theory it belongs to and how to solve it. From the image A,B,C,D,E are five places and connected. In some cases ...
I have been asked this question in an interview. In 1 million and 1 numbers, all the numbers having the duplicate except only one number. How to find that one number ? I got an idea to use EXOR gate ...
I'm newbie to Java and was trying out this FizzBuzz problem: Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and for the ...
This puzzle works for any programming language that has the same // single-line and /* ... */ multi-line comments that C++, C# and Java do. You are debugging an application. You find a fishy block of ...
I asked this question on programmers 10 days back but wasn't able to get the answer that I wanted. Write program in java to print the squares of first 25 integers(1-25) without using any variables. ...
The objective is to write java code that detects the JVM version relying in compatibility changes, side effects, bugs and/or undefined behavior that works in a way in one version and another way in ...
I know I know, not another tips question. But I'm rather surprised that this question hasn't already been posted. At any rate, are there any useful shortcuts that can be used especially in Java? ...