Top "Comparison" questions

Questions about data comparison and efficient ways to accomplish it.

get NSDate today, yesterday, this Week, last Week, this Month, last Month... variables

I am trying to do is to get NSDate today, yesterday, this Week, last Week, this Month, last Month variables …

iphone time comparison nsdate
How do I compare all elements of two arrays?

I have two big arrays with about 1000 rows and 1000 columns. I need to compare each element of these arrays and …

matlab comparison matrix vectorization
Signed/unsigned comparisons

I'm trying to understand why the following code doesn't issue a warning at the indicated place. //from limits.h #define …

c++ visual-studio-2005 comparison unsigned signed
What is "missing" in the Visual Studio 2008 Express Editions?

What is "missing" in the Visual Studio 2008 Express Editions? In particular, what functionality is not available? what restrictions are there …

comparison visual-studio-express
double equals vs is in python

I run the following in the Python interpreter: >>> foo = 10 >>> dir(foo) == dir(10) True >&…

python comparison boolean equals equality
Is there a Java reflection utility to do a deep comparison of two objects?

I'm trying to write unit tests for a variety of clone() operations inside a large project and I'm wondering if …

java comparison equals
How does Python 2 compare string and int? Why do lists compare as greater than numbers, and tuples greater than lists?

The following snippet is annotated with the output (as seen on ideone.com): print "100" < "2" # True print "5" > "9" # False print "100" &…

python types comparison python-2.x
How to check if a string starts with another string in C?

Is there something like startsWith(str_a, str_b) in the standard C library? It should take pointers to two …

c string comparison startswith
How to efficiently compare two unordered lists (not sets) in Python?

a = [1, 2, 3, 1, 2, 3] b = [3, 2, 1, 3, 2, 1] a & b should be considered equal, because they have exactly the same elements, only in different order. …

python algorithm list comparison
Which is better H2 or HSQLDB?

HSQLDB 2.0 is soon to be released. I wonder if it will outperform H2 since, as far as I know, most …

java database comparison hsqldb h2