r*******y 发帖数: 1081 | 1 I have a file 1.txt
//1.txt
A B
B C
D E
E F
G H
I J
two letters in each line are in same group. So for the file above
A B C is in one group
D E F is in second group
G H is in third group
I J is in the fourth group
I need to use javascript to get the output below:
There are 4 groups:
group 1: A, B, C
group 2: D, E, F
group 3: G, H
group 4: I, J
How to write the javascript code ? Thanks a lot | g*****g 发帖数: 34805 | 2 wrong board.
【在 r*******y 的大作中提到】 : I have a file 1.txt : //1.txt : A B : B C : D E : E F : G H : I J : two letters in each line are in same group. So for the file above : A B C is in one group
| r*******y 发帖数: 1081 | 3 haha
which board? thanks
【在 g*****g 的大作中提到】 : wrong board.
|
|