Newsgroups: comp.lang.ruby
From: Sharon Phillips <phillip...@yahoo.co.uk>
Date: Tue, 4 Dec 2007 07:58:01 -0500
Local: Tues, Dec 4 2007 7:58 am
Subject: Re: [QUIZ] Postfix to Infix (#148)
Hi,
Didn't have much time for this, so here's a partial solution. Cheers, eqn= %w[1 56 35 + 16 9 - / +] stack= [] eqn.each do |e| def disp item, depth puts disp(stack,0) You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||