background preloader

Neopythonic

Neopythonic
Related:  Algorithms

Lectures 1 and 2: Analysis of Algorithms I just finished watching the last lecture of MIT's "Introduction to Algorithms" course. Having a great passion for all aspects of computing, I decided to share everything I learned with you, my dear readers! This is the first post in an article series about this course. As I wrote earlier, I am very serious about watching video lectures. There are totally 23 video lectures, each around 1 hour 20 minutes long. Understanding and designing effective algorithms is a very important skill for a top-notch programmer. Let's start with Lecture 1 of this course. Lecture 1: Analysis of Algorithms The first lecture is given by the famous professor Charles E. He starts the lecture by explaining what this course and algorithms will be all about. Designing great software is not just about performance. Here is the list of things more important than performance that Charles presented: He also asks "Why study algorithms and performance at all?". Sometimes performance is correlated with user-friendliness.

How not to write Python code – Ikke's blog Lately I’ve been reading some rather unclean Python code. Maybe this is mainly because the author(s) of the code had no in-depth knowledge of the Python language itself, the ‘platform’ delivered with cPython,… Here’s a list of some of the mistakes you should really try to avoid when writing Python code: Some days ago RealNitro pointed me at this list of essential Python readings. That’s about it for now, maybe I’ll add some more items to this list later on. Posted in Development, Technology. Tagged with Development, python. By Nicolas – February 8, 2008

The Life of Python – 20 Greatest Monty Python Sketches The Holy Grail of Python’s 20 most hilarious sketches, celebrating their 40th anniversary. This Anniversary Special marks the day that Monty Python made its sparkling debut on television when the very first episode of Monty Python’s Flying Circus was aired on the BBC on 5 October 1969. The irresistible Oxbridge partnership of John Cleese , Eric Idle , Graham Chapman , Michael Palin and Terry Jones , mixed with the dazzlingly surreal artworks of American Terry Gilliam , celebrates four decades and 45 episodes of risqué silliness. The comedy of Monty Python was streaks ahead of its time. Famous for its innovation and radical splendor, Python sketches broke the mould of building to a specific punchline, delivering some of the funniest and most enduring sketches of our lifetime. In honour of 40 phenomenal years of comedy, we take a look at the 20 greatest Python sketches ever. 1. Undeniably the most popular and well known of the Monty Python sketches, and for good reason too. 2. 3. 4. 5. 6. 7.

ajmals PyPy Status Blog Reverse a linked list in java « Think ! If you search for it you will get millions of solutions but sadly (like many things in internet) the first few solutions seem unintuitive and unnecessarily complex for such a simple problem, not sure why, anyway putting mine out there for somebody to point out why I should go for a more complex solution. [in java for a change] Idea : Use two references and reverse their links and proceed till we reach the end public void reverse_iterative { if(isEmpty()) { return;} //curr == null Node currNode,nextNode , loopNode; currNode = head; nextNode = head.next; head.next = null; while(nextNode != null) { loopNode = nextNode.next; nextNode.next = currNode; currNode = nextNode; nextNode = loopNode; } head = currNode; } Recursive Idea : Reverse the sublist starting from second node and point the second node to first, apply this recursively. Share This

Reader - Basshero.org Skulpt Chemoton § Vitorino Ramos' research notebook

Related: