On Sun, 30 Apr 2017 15:58:13 +0100
Alan Gauld via Tutor wrote:
> I would probably combine both such that for each cell you
> have a tuple containing the given number and the set of
> candidates. In some cases the number may be a sentinel
> (such as -1) to indicate no number yet, and for some
> ce
On 30/04/17 00:58, Phil wrote:
> Thank you Ben. A rethink of the problem during the 20 hours since
> I posted my most recent question has led to a solution.
You don;t say what so i'll go with what you say below...
> The strings are the given numbers while the sets are
> the likely candidates.
Phil writes:
> It took me months to solve come up with a working solution in C++
> whereas I almost have a working solution in Python in a little over a
> week.
Welcome to Python, we're glad to hear of your success!
--
\ “[Entrenched media corporations will] maintain the status quo, |
On Sat, 29 Apr 2017 20:27:17 +1000
Ben Finney wrote:
> Why is the data in such a state that you can't decide how to use it
> until you know whether it is a set versus a string? Can the data be
> handled differently? We'll need to know what you're trying to achieve,
> to answer properly.
Thank yo
Phil writes:
> Thank you Ben and Martin for your detailed replies. I was debating
> whether or not to post my question at all because it looked vague,
> even to me.
That's not the issue; the question was posed clearly enough. The problem
is that your purpose is opaque, and we have a strong suspi
On Fri, 28 Apr 2017 19:42:36 -0700
"Martin A. Brown" wrote:
>
> Hello and greetings Phil,
>
> >> I'm trying to implement a conditional branch based on a variable
> >> type.
> >
> >This is often (not always) a mistake, in Python. So the question
> >needs to be asked: What makes you think that co
Hello and greetings Phil,
>> I'm trying to implement a conditional branch based on a variable type.
>
>This is often (not always) a mistake, in Python. So the question needs
>to be asked: What makes you think that condition is a requirement?
>
>So, I suspect you will need to explain better what l
Phil writes:
> I'm trying to implement a conditional branch based on a variable type.
This is often (not always) a mistake, in Python. So the question needs
to be asked: What makes you think that condition is a requirement?
In other words, why is the data such that you *need* to know whether it