ghusbands
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
20 ms·
- 241.▲
- 242.▲
The sibling comment has a good general answer. In this particular case, if you use cut, it seems like it works, but then you try to solve rle([9,9,A,B,8,7], [[9,X], [8,Y], [7,1]]) or other bidirectional things and you find the cuts prevent - 243.▲
- 244.▲
Just try writing (without hacks/cuts) a run-length encoder that produces only one answer ([9,9,9,8,8,7] -> [[9,3], [8,2], [7,1]]) and works forwards and backwards and then tell me the execution model is not a limitation. It's t - 245.▲
- 246.▲
- 247.▲
- 248.▲
- 249.▲
- 250.▲
- 251.▲
- 252.▲
- 253.▲
- 254.▲
- 255.▲
- 256.▲
- 257.▲
- 258.▲
- 259.▲
- 260.▲
- 261.▲
- 262.▲
- 263.▲
- 264.▲
- 265.▲
- 266.▲
- 267.▲
- 268.▲
- 269.▲
- 270.▲
More ›