@vaporeon_ this is the future litleos want
@vaporeon_ this is the future liberals want
@vaporeon_ and there's chicken in there too because why not?
@vaporeon_ a weird potato onion leek egg drop soup i made last weekend to stop things from going bad in my fridge
@monorail i do say "trivial" and "such that" a nontrivial amount in everyday conversation
@vaporeon_ "cycle" is not a technical concept it is a word i made up to describe what i was looking for
@vaporeon_ what i'm trying to do is find the length of a "cycle" in the array. a cycle is the number of "jumps" you can do in the array if you jump forward by a set number of indices before you return to where you started, assuming that you start back at the beginning of the array once you exceed its length
@vaporeon_ when i looked at other solutions people usually used a greatest common denominator algorithm which is O(sqrt(n)) in this step, but the reasons for it are due to Math I Don't Understand
@vaporeon_ im trying to think of a silly acronym but i cannot think of one, gorp is too weird
@vaporeon_ they have a terminal where you can write code in an online IDE and immediately check the result against test cases so it actually makes sense in this context
re: no image desc
@vaporeon_ specifically my solution is a linear time, O(1) space solution (O(1) space solution is really hard to come up with)
@wallhackio that’s epic
@vaporeon_ it's a solution to https://leetcode.com/problems/rotate-array/description/
(javascript warning)
@cam fraternal
kept afloat by big ideas.
you can call me Caleb or Clodsire. i also go by clodboy and catwin. i am not picky about names (unless its one amy made up)
videogame enjoyer. mathematics hobbyist and recovering physicist. software engineer. professional wonk. prophet of The Truth. the walking embodiment of "not diagnosed, but somethings wrong". i like animals that wear cowboy hats.
number of fat cock awards received: 56
pfp is by @The_T
header is by @vaporeon_
"i regret ever allowing him here" ~aescling
"oh you're one of those weird movie likers" ~Ti
"i know your taste in movies well enough to discount your opinion" ~globin
"caleb is the only person on this websites who truly understands what the report button is for: 'i don't like this post'" ~holly
30+
straight
he/him