Live data from Hacker News

Viewing profile — EnderShadow8

EnderShadow8

HN member
Joined
Mon, May 31, 2021, 4:00 AM UTC
HN karma
36
Public activity
29 items

About EnderShadow8

No profile information was provided.

Recent public activity

  1. comment
    Comment #34123643

    Segment trees are the foundation upon which all of competitive programming is built.

  2. comment
    Comment #33221829

    You can write an extension which evals a JS file to recreate this

  3. comment
    Comment #32909507

    Why not use double quotes for strings in all languages? It makes sense for a number of reasons. Single quotes are much more likely to be in the contents of a string than double quo…

  4. comment
    Comment #32745474

    It makes it more cumbersome to copy the URL

  5. comment
    Comment #32633875

    Actually that's also wrong, I usually see this rule applied in other languages: If the opening bracket is on the same line as content, then so is the closing bracket. By this rule,…

  6. comment
    Comment #32496304

    This video clears up the confusion IMO https://www.youtube.com/watch?v=go3xtDdsNQM

  7. comment
    Comment #32271819

    I think that's the implication

  8. comment
    Comment #32190161

    Segment trees are objectively superior in all ways except implementation length

  9. comment
    Comment #32187148

    I've been told to consider it constant for all practical purposes

  10. comment
    Comment #32187133

    Treap: https://en.wikipedia.org/wiki/Treap It's like a Red-Black tree in use case, but much faster to implement, which is good for competitive programming. The average case complex…

  11. comment
    Comment #31248425

    This might be interesting https://pypi.org/project/scoping/

  12. comment
    Comment #31134445

    An alternative might be for personalisation to be opt-in rather than opt-out even when signed in with an account (which shouldn't even be necessary for many services anyway)

  13. comment
    Comment #31014707

    Go enforces 1TBS over Allman style braces IIRC. I don't really care because I like 1TBS and also don't write Go but it did enstrange parts of the community.

  14. comment
    Comment #30964202

    CaryKH made something similar a while ago: https://www.youtube.com/watch?v=95rtiz-V2zM

  15. comment
    Comment #30667895

    Instead of using upvotes from sites such as Reddit and HN, why not instead allow the users of the search engine itself upvote and downvote results? This might allow quality results…

  16. comment
    Comment #30595342

    I just use a Python or Node shell as a calculator. It usually works well enough.

  17. comment
    Comment #30553400

    This is basically exactly me, except I don't have as concrete of a feel of the actual shapes, all I know is that 9's slice off ones from other numbers, not that actual shape of the…

  18. comment
    Comment #29757892

    Priority queues aren't constant time. They're log time.

  19. comment
    Comment #29757889

    If it works, it works. Priority queues are an extremely powerful data structure if you leverage them right. I find C++'s set and map and related data structures are also very usefu…

  20. comment
  21. comment
    Comment #29285510

    I often feel something along the lines of this as well. I often feel like no matter how much effort and energy and passion I put into something, nobody will care. It's like screami…

  22. story
  23. comment
    Comment #28837495

    Marking questions as "stupid, irrelevant, lazy etc" is SO's way of maintaining site content quality. Though they do get a bit aggressive at times, it's actually a good thing. A sit…

  24. comment
    Comment #28837470

    Note: don't use typeof x === 'object' to check whether something is a valid object, because it will return true for arrays as well. Arrays are objects, so this is expected behaviou…

  25. story