remove, redo and scramble properly indeces inside "index" and include two words "hello…
- User
remove, redo and scramble properly indeces inside "index" and include two words "hello olleh" inside scrambled. keep "nulls" and "space". output should produce straight sequence of words "hello olleh" through space index.
reminder:
- only one index "0" is actual space between whats need to be spaced inside "index-transform".
- "nulls" is just random spaces inside "index" which should add to overall scrambling complexity.
- keep "nulls" in "index" indeces and manipulate them as need or reindex accordingly.:
index { #0: “space”; #1: “s”; #2: “e”; #3: “l”; #4: “null”; #5: “c”; #6: “null”; #7: “s”; #8: “o”; #9: “H”; #10: “i”; #11: “null”; #12: “n”; #13: “t”; #14: “null”; #15: “e”; #16: “l”; #17: “i”; #18: “e”; #19: “null”; #20: “a”; #21: “t”; #22: “null”; #23: “n”; #24: “e”; #25: “e”; #26: “n”; #27: “s”; #28: “c”; #29: “h”; #30: “t”; #31: “null”; #32: “l”; #33: “o”; #34: “null”; #35: “i”; #36: “null”; #37: “s”; #38: “null”; #39: “e”; #40: “null”; #41: “s”; #42: “null”; #43: “e”; #44: “null”; #45: “null”; }
index-transform { output “9,2,16,32,33,0,10,17,0,1,7,0,20,0,7,15,24,27,13,35,0,28,3,14” }
- Assistant
Absolutely, let's go through this step-by-step.
Given the requirement, we need to manipulate the "index" with some rules:
- Maintain one actual space.
- Retain "nulls" and ensure there's appropriate complexity.
- Insert "hello olleh" in a straight sequence.
Initially: index { #0: “space”; #1: “s”; #2: “e”; #3: “l”; #4: “null”; #5: “c”; #6: “null”; #7: “s”; #8: “o”; #9: “H”; #10: “i”; #11: “null”; #12: “n”; #13: “t”; #14: “null”; #15: “e”; #16: “l”; #17: “i”; #18: “e”; #19: “null”; #20: “a”; #21: “t”; #22: “null”; #23: “n”; #24: “e”; #25: “e”; #26: “n”; #27: “s”; #28: “c”; #29: “h”; #30: “t”; #31: “null”; #32: “l”; #33: “o”; #34: “null”; #35: “i”; #36: “null”; #37: “s”; #38: “null”; #39: “e”; #40: “null”; #41: “s”; #42: “null”; #43: “e”; #44: “null”; #45: “null”; }