fred rosenberger wrote:
Ask ten people how to write a resume, and you'll get twenty opinions.
There is no right or wrong way to put together a resume. There are just ways that person A like more, and ways that person B likes more. And you never know how or what a specific company or person wants.
Vlad Timoshuk wrote:
Vlad Timoshuk wrote:
Vlad Timoshuk wrote:
I think they should be pretty simmilar but i dont know how to modify it so it only retirn true when one rectangle completly inside the other.
Bill Platt wrote:
Paul Clapham wrote:Does your assignment allow you to do that?
There isn't anything specified that says that I can't do it.
Unfortunately, the data set is a table that was provided contains almost 38K entries for customers, and a table that contains the orders, so creating a table would be time-consuming.
Each state contains in excess of 500 entries, it's why I wanted to use the OR clause.
thanks for the response
--Bill
Mike Simmons wrote:I'm less impressed by the Stack Overflow post, particularly the part that gave us the addProperty() method discussed here. The problem is that whether or not the individual methods are thread-safe (yes for StringBuffer, no for StringBuilder), the overall code gives unpredictable results because you need more than one append() call to add a property, and there is nothing preventing two different threads from interfering with each other. Even if we use a "thread safe" StringBuffer, the code using the StringBuffer is not thread safe. So it's a confusing example.
Mike, regarding your original question, I would say that in general it's often pretty difficult to *demonstrate* a lack of thread safety. Most of the time if you write unsafe code, it will probably work fine, most of the time. But sometimes, a problem may occur. And when it does occur, it tends to be hard to understand the cause, especially since we can't reliably reproduce the problem.
Campbell Ritchie wrote:
At this point, you might start to move out of Big O notation; maybe 50000 executions will fill the available heap space and require multiple GC runs, causing space complexity to become its limiting factor. Repeated String concatenation is rather like that, though the Java9+ performance is much faster than in earlier versions.. . . 3 ms to complete for a data set of N=500, how long would you expect it to take for an N=50,000 . . .
Junilu Lacar wrote:But that kind of begs the question "Why try to come up with all these other approaches for this exercise when the 2nd column already tells you what to do?"