Re:Ask HN: Have I discovered an insoluble programming problem?
by IHaveASolution on Thursday October 28, 2010 @12:51AM
(#1841790)
Also, the formatting was goofed up, sorry about that. Really isn't too bad a problem when you think about it in terms of, where do things go when you print them, and where is the cursor. That's what x and i are respectively.
Re:Ask HN: Have I discovered an insoluble programming problem?
by zeynel1 on Thursday October 28, 2010 @01:24AM
(#1841853)
Thanks but I am sorry but I don't understand this solution.
In my problem, I get a string s that user enters in a form.
I append that to an empty list L = []
then I test if the last saved string is the same as the new string. If same, I write it on the same column; if not the cursor moves to next column (I was trying to do this with tables) and as long as the user types the same string the cursor stays on the same column. If a new string is typed; a new column is started; and so on.
I don't think your solution is to this problem. You assume that there is a list with duplicates.
Does this make sense?
Re:Ask HN: Have I discovered an insoluble programming problem?
by IHaveASolution on Thursday November 04, 2010 @11:46PM
(#1871950)
Okay, here's the thing: That's not actually what your example seems to be doing. If you have
a
b
a
Then the second a should go in the first column, right? If not, then this is trivial. If so, then the input is all appended to the list.
I'm sorry you seemed to have not gotten help on this. The title seemed a little silly to me.