About 723,000 results
Open links in new tab
  1. string - What is lexicographical order? - Stack Overflow

    Aug 30, 2017 · Alphabetical order is a specific kind of lexicographical ordering. The term lexicographical often refers to the mathematical rules or sorting. These include, for example, …

  2. What does lexicographically mean? - Stack Overflow

    Apr 30, 2021 · I saw a program in codeforces where it says, "Now Petya wants to compare those two strings lexicographically." I didn't understand it. What does lexicographically …

  3. What is string lexicographically? Java - Stack Overflow

    Sep 16, 2015 · The compareTo() method in Java compares two strings "lexicographically". Can someone please simply explain how the lexicographic comparison works in java? I found this …

  4. sort array lexicographically in javascript - Stack Overflow

    Dec 8, 2018 · The lines in the V8 code implement the sort per ECMA-262 using < and >, which sorts on code unit, not lexicographically (because ASCII code units aren't in lexicographic order).

  5. String Comparison in Java - Stack Overflow

    Oct 31, 2010 · If you check which string would come first in a lexicon, you've done a lexicographical comparison of the strings! Some links: Wikipedia - String (computer science) …

  6. python - How are strings compared? - Stack Overflow

    2 Strings are compared lexicographically using the numeric equivalents (the result of the built-in function ord ()) of their characters. Unicode and 8-bit strings are fully interoperable in this …

  7. Lexicographic Order in Java - Stack Overflow

    Oct 24, 2011 · Compares two strings lexicographically. The comparison is based on the Unicode value of each character in the strings. and This is the definition of lexicographic ordering. If two …

  8. How can I sort numbers lexicographically? - Stack Overflow

    Jul 2, 2014 · But seriously, this also means: if you can sort an array of strings lexicographically, as Python's sort intrinsically can, then just make the "key string" out of each number and sort that …

  9. What is exact meaning of lexicographically sorted order?

    Nov 1, 2023 · I have tried to understand that, for example if an array consist of 2 element say 2 and 11. the lexicographically order would be 11 , 2 (Since 1st element, It's all digit lie smaller …

  10. Can we sort a column lexicographically in SQL? [duplicate]

    Sep 18, 2021 · I want to sort the Value column in the below table. If the values are the same, I want to sort the Name column lexicographically which means names - Apple and Carrom …