Skip to content

Instantly share code, notes, and snippets.

View StefanRudvin's full-sized avatar
💭
Writing Code

Stefan Rudvin StefanRudvin

💭
Writing Code
View GitHub Profile
@StefanRudvin
StefanRudvin / alphabet soup
Last active June 29, 2020 04:00
Simplify
import string, math
def solve(n):
"""
Begin by creating base case, then programatically generate result rows by slicing the first x elements
from the base case, add repeated terminal value and add the reverse of the previous.
"""
abc_chars = string.ascii_uppercase[1:n][::-1]
base = abc_chars + string.ascii_uppercase[0] + abc_chars[::-1]
ret = []
portal_id: 2153467
primary_id: "83784948"
time_stamp: 1582563605505
event_type: CLICK
domain: "hubspot.fedscoop.com"
callback_id: 13
skip_aggregation: false
2020-02-24 17:12:33.926 [kafka-consumer-handler-0] WARN c.h.e.a.i.k.w.e.EventTrackingEventsWorker - filtered-out malformed event:
Error getting custom metadata for click event: guid: "AHU4K4_G2EgbKGAekr59gA"