Skip to main content
ti7's user avatar
ti7's user avatar
ti7's user avatar
ti7
robotics infrastructure hack
  • Member for 9 years, 5 months
  • Last seen this week
About

eh, hash it with a set and find the length

if you find you need to care about the size of your int (just kidding: it always matters..), it's normally best to explicitly use a type with a size like uint32_t

"you knew it was wrong, but you did it anyways"


Quick Comments

Welcome to SO! What exactly have you tried so far? We're much more here to help with specific questions of the form "I tried X, but it did not do what I expect and instead resulted in an error!" accompanied by a Minimal, Complete, and Verifiable example

XY Problem

Stack Overflow question checklist

Why should I not upload images of code/data/errors?

check out pdb - The Python Debugger to debug small programs python3 -m pdb myscript.py .. use b to set a breakpoint (so you can inspect your program there), c to run up to that point (continue), and ? to explore commands .. this will allow you to inspect the live state of your program wherever you breakpoint or continue to

welcome to SO and glad to have helped! you'll be able to comment when you have 50 reputation (about the reputation requirement) (about "thank you" comments) .. in the meantime, creating and voting on good Questions and Answers and fixing posts with an edit is the best way to take part in and thank the community!

hundreds of times faster than python loop iteration

6
gold badges
44
silver badges
73
bronze badges
861
Score
621
Posts
74
Posts %
231
Score
90
Posts
11
Posts %
81
Score
42
Posts
5
Posts %
60
Score
39
Posts
5
Posts %
57
Score
37
Posts
4
Posts %
52
Score
41
Posts
5
Posts %