Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Denis McMahon Newsgroups: comp.lang.python Subject: Re: I need algorithm for my task Date: Thu, 6 Nov 2014 03:36:40 +0000 (UTC) Organization: A noiseless patient Spider Lines: 15 Message-ID: References: <1962053862.5573720.1415210715670.JavaMail.zimbra@estudiantes.uci.cu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 6 Nov 2014 03:36:40 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="66ffcfa4470a58bcddbdcd1913f98ab4"; logging-data="13879"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/InETLli1EayN+R/17O55/WuBSsxucUWA=" User-Agent: Pan/0.136 (I'm far too busy being delicious; GIT 926a150 git://git.gnome.org/pan2) Cancel-Lock: sha1:cUG+Fv6xK56fZLyacbvseAkcd5o= Xref: csiph.com comp.lang.python:80308 On Wed, 05 Nov 2014 18:49:01 +0000, MRAB wrote: > It doesn't work for the final example or "barbaz". Oh, and we really need a private "python homework answers" list where we can discuss the most pythonic solution we can think of for all these homework / coursework questions without showing the solutions to the students. I'm quite proud of a 2 line solution to the third algorithm that I implemented, although it might be considered as somewhat obfuscated code by some. ;) -- Denis McMahon, denismfmcmahon@gmail.com