Top "Comparison" questions

Questions about data comparison and efficient ways to accomplish it.

Check if all elements in a list are identical

I need a function which takes in a list and outputs True if all elements in the input list evaluate …

python algorithm comparison
Java Compare Two Lists

I have two lists ( not java lists, you can say two columns) For example **List 1** **Lists 2** milan hafil dingo iga …

java list comparison hashmap
Compare dates in MySQL

I want to compare a date from a database that is between 2 given dates. The column from the database is …

mysql sql comparison
Image comparison - fast algorithm

I'm looking to create a base table of images and then compare any new images against that to determine if …

image algorithm comparison computer-vision
Compare two files in Visual Studio

I saw new comparsion tool in VS 2012 for comparing two files or two versions of file. I like it. But …

visual-studio file compare comparison diff
How to test multiple variables against a value?

I'm trying to make a function that will compare multiple variables to an integer and output a string of three …

python if-statement comparison match boolean-logic
How do I make my string comparison case insensitive?

I created a Java program to compare two strings: String s1 = "Hello"; String s2 = "hello"; if (s1.equals(s2)) { System.…

java string comparison case-insensitive
Switch statement for greater-than/less-than

so I want to use a switch statement like this: switch (scrollLeft) { case (<1000): //do stuff break; case (>1000 &&…

javascript jquery comparison switch-statement
Compare two List<T> objects for equality, ignoring order

Yet another list-comparing question. List<MyType> list1; List<MyType> list2; I need to check that they …

c# list comparison equals
How to check if an integer is in a given range?

Hoping for something more elegant than if (i>0 && i<100)

java comparison