Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
IHaveASolution
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
IHaveASolution
16y ago
OCaml is getting that much money from quantitative finance firms &c. if you are curious. There are a not insignificant number of them that use OCaml, and it is the only time I have heard of OCaml being used.
2.
▲
by
IHaveASolution
16y ago
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.
3.
▲
by
IHaveASolution
16y ago
I went to college at 13 (I've graduated now, obviously), and essentially had to answer this question over and over. I went to college, without the getting drunk, without the frat (I did get to do original research, though), and without the
4.
▲
by
IHaveASolution
16y ago
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.
5.
▲
by
IHaveASolution
16y ago
Here is how you do it: input is the list of words, with duplicates you need an additional list (let's call it x) and an integer (let's call it i) for each item in the list, if it isn't in x, add it, increment i, and print it followed by a