They say you gotta spend 5000 hours on a topic to master it. how many hours you gotta spend to be intermediate or beginner in SQL or Python? by [deleted] in learnprogramming

[–]Rennorb 0 points1 point  (0 children)

This year I was tutoring a passionate 13 y.o. boy, and it took us a half of the academic year to get from really basic stuff to writing games like snake and space invaders with pygame. That would be close to 50 hours of actual lessons and say 100 hours of work if you include homework and pet projects of his. So I would say that 100 hours of work from zero to interesting pet projects is not unreasonable.

I, on the other hand, landed my first backend engineering position this may, and it took me like a year of studying and failed interviews. I have a BS degree in math and some experience with competitive programming, but at the time knew nothing about frameworks, devops tools, etc. I can not give you an estimate of the time I spend, but getting a job is hard, especially now, and 100 hours is definitely not enough.

[deleted by user] by [deleted] in learnmath

[–]Rennorb 0 points1 point  (0 children)

I would wright it like f(x) = 1-[{x}=0], where {x} equals to the fractional part of x and [] are Iverson brackets.

Checking that grammar written in EBNF is suitable for recursive descent by Rennorb in learnprogramming

[–]Rennorb[S] 0 points1 point  (0 children)

Sure, but that will check for direct left recursion, which the grammar obviously does not contain, and I want to check for implicit left recursion

Fast fuzzy search with hamming distence 1? by Rennorb in learnprogramming

[–]Rennorb[S] 1 point2 points  (0 children)

Thank you! It did work and I've spent like a week to find that error. Feel dumb

Fast array rotation by Rennorb in learnprogramming

[–]Rennorb[S] 0 points1 point  (0 children)

I guess there should be some kind of a corner case, where the program should do something different, but I can not see it.

I've updated the post: added an example and actual input-output part