Top "Compare" questions

The analysis required to assess the differences and similarities between two or more entities.

Comparing two TCHAR's with same value results false

I am trying to check my applications path, and if it is not a specified path, then move it. I …

c++ compare tchar getmodulefilename
How do I implement Swift's Comparable protocol?

How do I use the Comparable protocol in Swift? In the declaration it says I'd have to implement the three …

compare protocols swift
Delphi: TStringList.Contains?

Is there any integrated solution in Delphi 2007 to check whether a TStringList contains a part of a certain value? e.…

delphi find compare tstringlist
How to compare two jsons ignoring order of elements in array properties?

I need to compare two strings which represent json objects. For testing purposes I need a way to compare these …

javascript json compare equals jsonassert
cmp command returning EOF on my output despite exact match as far as i can tell

So I will start by saying this is for a course and I assume the professor won't really care that …

c unix compare output cmp
Best solution for an anagram check?

I’m going through a permutation/anagram problem and wanted input on the most efficient means of checking. Now, I’…

java compare anagram
How can I find overlapping dateperiods/date ranges in PHP?

If I have two date ranges (e.g. May 1 - May 31 and May 23 - June 5) what would be the best …

php date datetime compare overlap
How to compare ranked lists

I have two lists of ranked items. Each item has an rank and an associated score. The score has decided …

list compare ranking
What is the benefit of using Spring REST Docs comparing to Swagger

Spring REST Docs was released recently and the documentation says: This approach frees you from the limitations imposed by tools …

api rest compare swagger spring-restdocs
Implementing custom IComparer<> (with example)

Ive just written the following code, which will order strings by their native string.Compare() but allow a collection of …

c# compare icomparer