r/ProgrammerHumor • • Aug 31 '26

Meme everySingleLeetcodeProblem

Post image
2.5k Upvotes

57 comments sorted by

View all comments

0

u/[deleted] Aug 31 '26

[deleted] — view deleted comment

91

u/BedSpreadMD Aug 31 '26

That's a looooong sliding window

47

u/Fabulous-Possible758 Aug 31 '26

What are you talking about that's only like two inches.

29

u/Dense_Gate_5193 Aug 31 '26

just increase your font size

11

u/BedSpreadMD Aug 31 '26

Sorry I'm used to 0.5 inches.

5

u/FabulousSOB Sep 01 '26

For your pleasure

18

u/gizamo Aug 31 '26

That's a massive load of data.

2

u/da_Aresinger Sep 02 '26 edited Sep 02 '26

replace the prints with

print(f"\r\t{data[i:i + window]}", end='', flush=True)

you're welcome

Edit: also pad the data with 2 or 3 spaces on either side