5,346 reputation
11128
bio website
location
age
visits member for 1 year, 7 months
seen 1 min ago

Nov
18
reviewed Close How do I determine the maximum value for a polynomial, given a range of x values?
Nov
18
reviewed Close Covariance of a P x M x N matrix
Nov
18
reviewed No Action Needed Parse website data that requires interaction with a form (POST)
Nov
17
revised Seek a quick way to bring standard order back to original after Complement
added 4 characters in body
Nov
17
comment Seek a quick way to bring standard order back to original after Complement
@Nasser: sorry, I am on weekend-mode :) And actually, not sure if it's an exact dupe - but close enough I'd say
Nov
16
revised How to find the longest matching sublists in a list
added 152 characters in body
Nov
16
answered How to find the longest matching sublists in a list
Nov
13
comment Manipulating List
@m_goldberg: thanks - I guess I'll keep it, as I think the difference will be rather small and as nobody mentioned that b is sorted. But thanks for the input!
Nov
13
answered Manipulating List
Oct
23
answered Missing something in my input for CountryData dependencies
Oct
22
comment Refer to next element of list when iterating using Map
@AlexeiBoulbitch: no problem at all! I am glad I wasn't the only one with that idea (see the last sentence in my comment) :) all good!
Oct
22
comment Refer to next element of list when iterating using Map
@ChrisDegnen: pretty much my comment above :)
Oct
22
comment Refer to next element of list when iterating using Map
I tend to use Partition in these situations, like (1 + #1 + #2) & @@@ Partition[{a, b, c, d}, 2, 1] or MapThread[(1 + #1 + #2) &, Transpose@Partition[{a, b, c, d}, 2, 1]]. I hope somebody will show a smarter way here...
Oct
21
reviewed Close Selecting StyleBox with Cases
Oct
21
comment Finding specific compositions of an Integer
@LeonidShifrin: don't base it on my opinion alone, your explanation is great as it is - it just took a bit till I got my head around the accum (I just had to work an example, further expl. wouldn't change that, I guess)
Oct
21
comment Finding specific compositions of an Integer
... it took me longer to understand how you exactly do it than to write my answer. Big +1.
Oct
21
comment Finding specific compositions of an Integer
ok, well, you will definitely like @LeonidShifrin's answer then!
Oct
21
answered Finding specific compositions of an Integer
Oct
21
comment Finding specific compositions of an Integer
ah, ok, I understood 1 and 1 (and also 2 and 2) cannot be neighbor. Got it!
Oct
21
comment Finding specific compositions of an Integer
aren't there some lists missing in your output, such as e.g. {1,2,1,2,1,2}?