Pricefield | Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@[email protected]MB to [email protected] • 2 years ago

[HN] Packing a string of digits into an integer quickly

lemire.me

external-link
message-square
0
fedilink
  • cross-posted to:
  • [email protected]
4
external-link

[HN] Packing a string of digits into an integer quickly

lemire.me

@[email protected]MB to [email protected] • 2 years ago
message-square
0
fedilink
  • cross-posted to:
  • [email protected]
Packing a string of digits into an integer quickly
lemire.me
external-link
Suppose that I give you a short string of digits, containing possibly spaces or other characters (e.g., "20141103 012910"). We would like to pack the digits into an integer (e.g., 0x20141103012910) so that the lexicographical order over the string matches the ordering of the integers. We can use

[ comments | sourced from HackerNews ]

alert-triangle
You must log in or register to comment.

[email protected]

[email protected]
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

Aggregated tech news.

  • 1 user / day
  • 1 user / week
  • 1 user / month
  • 1 user / 6 months
  • 1 subscriber
  • 15.6K Posts
  • 6.84K Comments
  • Modlog
  • mods:
  • @[email protected]
  • @[email protected]
  • UI: 0.18.4
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org