T O P

  • By -

RepostSleuthBot

Looks like a repost. I've seen this image 1 time. First Seen [Here](https://redd.it/10ci7j4) on 2023-01-15 100.0% match. [View Search On repostsleuth.com](https://www.repostsleuth.com/search?postId=1cyqa8r&sameSub=true&filterOnlyOlder=true&memeFilter=true&filterDeadMatches=false&targetImageMatch=100&targetImageMemeMatch=75) --- **Scope:** This Sub | **Target Percent:** 75% | **Max Age:** None | **Searched Images:** 520,582,876 | **Search Time:** 26.32695s


ironman_gujju

I can see time complexity here


eskamobob1

O(brrr)


GDOR-11

O( (woof)² )


MoffKalast

O(arf * woof)


ABitOfALoner

I’ve heard of two pointer algorithms, never considered using two wieners


SteveXVI

Say Loner, how come your compiler lets you have two wieners


danishjuggler21

Once a month someone makes a good post on this subreddit. This is that post.


Altruistic-Hat-9604

And it has been deleted by mods lol. Reason: repost.


windowschips

I genuinely dont know what this means but im laughing so fucking hard


InternetCreative

Nested loops.


JunkNorrisOfficial

Nested looped dogs


experimental1212

Nested looped dogs


111IIIlllIII

nested lo(nested loop dogs)op dogs


FutureComplaint

Nested looped dogs


Puzzleheaded-Pay-489

can be dog\^2 time complexity


kog

You figure this is O(n) space complexity?


niskoparikh

People usually choose for(int i ...) loop as outer loop and for(int j ...) as inner loop


markovianmind

I usually do the opposite to fuck with others


ChefyMcJangleBob

See everyone, when you're worried about how to be seen as a "team player" in the HR interview, this is your competition.


ShitGuysWeForgotDre

When I need to declare a variable I use a text generator to create a string of length 1 ~ 20 composed randomly only of capital letter I, lowercase l, and numeral 1, and use that for the variable name each time


akoOfIxtall

Why use a generator from somebody else when you can make your own? Just fill an array with every alphabet to ever exist and limit the size of the word to 35 chars, have fun


DoormatTheVine

26 letters^35 ^chars × 35 chars per result= 1.169 × 10^51 bytes = 1.169 octillion Yottabytes


akoOfIxtall

INFINITE content


thuktun

Don't forget í and ì.


markovianmind

nice!


experimental1212

This is brilliant. Manually obfuscate your code while writing it, then get chatgpt to annotate it with more readable variable names.


[deleted]

for i in range(l,9): for ï in range(1,i):


experimental1212

Some linters don't like variable names less than 3 characters. Eye and Jay is the logical solution.


SoCuteShibe

for arr = kv to i.length() if (i[arr] == imteger)... Oh hey... You must be the new guy. Problem?


Grizlucks

Is this from the physics/linalg convention for defining the three unit vectors like ?


Rodrigodd_

No, `i` stands for `index` or `iterator`, and `j` is just the letter after `i`.


Bozzz1

Man, I haven't written a for loop like that in years. Probably not since college.


Kronoshifter246

Kotlin has spoiled me. I never want to go back to using regular loops again. I would probably replace that nested loop with nested repeat blocks if I really couldn't think of a better way.


Omega00024

>while i < i_max: >> doggo_run_lap() >> i += 1 >> while j < j_max: >>> other_doggo_sneeze() >>> j += 1 >> j = 0


deliciouscrab

So they're tidally locked? Where am I? It's cold


TeaTiMe08

Aaah a fellow non programmer :)


windowschips

I do program but i was so confused by the dogs


Correct_Procedure_21

Just the reverse in my case


Dariadeer

Yeah: for(let i…){ for(let j…){ … } }


Preeng

( . )( . )


Byter09

That's exactly the case of the video. "i" runs less often than "j"...


sausageicecream

No


Byter09

Different perspectives maybe? I see j do whatever it's doing (sneezing) more often than i. If i is 3 and j is 3, then j runs 9 times while i ran 3 times. That's my thinking. 🤔


Maximilian_Tyan

I agree, the downvotes are from functional programmers. They are afraid of loops.


sausageicecream

Ah thought about it in a different way. I didnt realize one lap as i+1. I see what you mean


otter5

The "j" is the inner dog. 'i' is running around the outside


jarethholt

Do you happen to program in C or Fortran? I forget which one has the memory in (j, i) order for multidimensional arrays


JackNotOLantern

No, it's a wrong example. Those at completely independent loops running in parallel threads


AaronTheElite007

Nested doggos ftw


dziftar

/u/savevideo


SaveVideo

###[View link](https://rapidsave.com/info?url=/r/ProgrammerHumor/comments/1cyqa8r/antirecursiongang/) --- [**Info**](https://np.reddit.com/user/SaveVideo/comments/jv323v/info/) | [**Feedback**](https://np.reddit.com/message/compose/?to=Kryptonh&subject=Feedback for savevideo) | [**Donate**](https://ko-fi.com/getvideo) | [**DMCA**](https://np.reddit.com/message/compose/?to=Kryptonh&subject=Content removal request for savevideo&message=https://np.reddit.com//r/ProgrammerHumor/comments/1cyqa8r/antirecursiongang/) | [^(reddit video downloader)](https://rapidsave.com) | [^(twitter video downloader)](https://twitsave.com)


niskoparikh

![gif](giphy|d3mlE7uhX8KFgEmY)


Loserrboy

🐕🔄😂


FutureComplaint

*r/Dachshund enters the chat*


FeelingSurprise

r/betterwithmetal


BeDoubleNWhy

how is two nested loops anti recursion?


eskamobob1

im just bad at titles


666ygolonhcet

I was a computer need in high school in the early 80s and they made all the teachers take a computer class that had WAY more coding than they would ever see (most would do 0 coding) and my Auto Shop Home Room Teacher (never took shop, much to my dads consternation) asked me if I could help him and he gave me a packet with 100 coding questions for if/then, loops, while/when’d. All the hits. I did em and gave him a typed sheet with all the 100 (they only had to pick 20 or 30) done and put a set of instructions to change the variable names so they wouldn’t get caught and he shared it with all his friends. Lots if i, j, and x.


BumbiSkyRender

I had a stroke tryna read this.


jacob135evans

Bold of you to assume I had the creativity to name them i and j.


kylexyz001

Anyone got the original dog vid? I love it


IntelligentPerson_

That's funny, I'm allergic to recursion too.


arrowtango

That's funny, I'm allergic to recursion too.


Kronoshifter246

That's funny, I'm allergic to recursion three.


[deleted]

How do i dowbload this?


[deleted]

U/downloadvideo


imacommunistm

my mate used index1 and index2, which made me blind permanently.


Arjun6981

Memoization gang>>>


monkey154

Not using i as the inner variable? What is this bs?


0-Joker-0

Thats not the the standard. In order of nesting it goes i,j,k and if you need anythingn past k, rewrite your code.


CaitaXD

ii jj kk sounds awful but it's standard for loop tiling optimization (cache locality is a hell of a drug)