Cody

Solution 2026012

Submitted on 18 Nov 2019 by Daniel Fry
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
s1 = 'North Carolina Tennessee Texas Nebraska Maine'; s2 = ' Tennessee Texas Maine'; assert(isequal(s2,refcn(s1)))

remove_inds = 32 33 34 35 36 37 38 39 remove_inds = 32 33 34 35 36 37 38 39 remove_inds = 32 33 34 35 36 37 38 39 remove_inds = 32 33 34 35 36 37 38 39 remove_inds = 32 33 34 35 36 37 38 39 remove_inds = 32 33 34 35 36 37 38 39 remove_inds = 32 33 34 35 36 37 38 39 1 2 3 4 5 6 7 8 9 10 11 12 13 14 remove_inds = 32 33 34 35 36 37 38 39 1 2 3 4 5 6 7 8 9 10 11 12 13 14 s2 = ' Tennessee Texas Maine'

2   Pass
s1 = 'Nebraska Nevada New Hampshire New Jersey New Mexico New York North Carolina North Dakota'; s2 = ' '; assert(isequal(s2,refcn(s1)))

remove_inds = 1 2 3 4 5 6 7 8 remove_inds = 1 2 3 4 5 6 7 8 10 11 12 13 14 15 remove_inds = 1 2 3 4 5 6 7 8 10 11 12 13 14 15 17 18 19 20 21 22 23 24 25 26 27 28 29 remove_inds = Columns 1 through 30 1 2 3 4 5 6 7 8 10 11 12 13 14 15 17 18 19 20 21 22 23 24 25 26 27 28 29 31 32 33 Columns 31 through 37 34 35 36 37 38 39 40 remove_inds = Columns 1 through 30 1 2 3 4 5 6 7 8 10 11 12 13 14 15 17 18 19 20 21 22 23 24 25 26 27 28 29 31 32 33 Columns 31 through 47 34 35 36 37 38 39 40 42 43 44 45 46 47 48 49 50 51 remove_inds = Columns 1 through 30 1 2 3 4 5 6 7 8 10 11 12 13 14 15 17 18 19 20 21 22 23 24 25 26 27 28 29 31 32 33 Columns 31 through 55 34 35 36 37 38 39 40 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 remove_inds = Columns 1 through 30 1 2 3 4 5 6 7 8 10 11 12 13 14 15 17 18 19 20 21 22 23 24 25 26 27 28 29 31 32 33 Columns 31 through 60 34 35 36 37 38 39 40 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 62 63 64 65 66 Columns 61 through 69 67 68 69 70 71 72 73 74 75 remove_inds = Columns 1 through 30 1 2 3 4 5 6 7 8 10 11 12 13 14 15 17 18 19 20 21 22 23 24 25 26 27 28 29 31 32 33 Columns 31 through 60 34 35 36 37 38 39 40 42 43 44 45 46 47 48 49 50 51 53 54 55 56 57 58 59 60 62 63 64 65 66 Columns 61 through 81 67 68 69 70 71 72 73 74 75 77 78 79 80 81 82 83 84 85 86 87 88 s2 = ' '

3   Pass
s1 = 'Alabama Alaska Arizona Arkansas California Colorado Connecticut Delaware Florida Georgia Hawaii Idaho Illinois Indiana Iowa Kansas Kentucky Louisiana Maine Maryland Massachusetts Michigan Minnesota Mississippi Missouri Montana Nebraska Nevada New Hampshire New Jersey New Mexico New York North Carolina North Dakota Ohio Oklahoma Oregon Pennsylvania Rhode Island South Carolina South Dakota Tennessee Texas Utah Vermont Virginia Washington West Virginia Wisconsin Wyoming'; s2 = 'Alabama Alaska Arizona Arkansas California Colorado Connecticut Delaware Florida Georgia Hawaii Idaho Illinois Indiana Iowa Kansas Kentucky Louisiana Maine Maryland Massachusetts Michigan Minnesota Mississippi Missouri Montana Ohio Oklahoma Oregon Pennsylvania Rhode Island South Carolina South Dakota Tennessee Texas Utah Vermont Virginia Washington West Virginia Wisconsin Wyoming'; assert(isequal(s2,refcn(s1)))

remove_inds = 228 229 230 231 232 233 234 235 remove_inds = 228 229 230 231 232 233 234 235 237 238 239 240 241 242 remove_inds = 228 229 230 231 232 233 234 235 237 238 239 240 241 242 244 245 246 247 248 249 250 251 252 253 254 255 256 remove_inds = Columns 1 through 30 228 229 230 231 232 233 234 235 237 238 239 240 241 242 244 245 246 247 248 249 250 251 252 253 254 255 256 258 259 260 Columns 31 through 37 261 262 263 264 265 266 267 remove_inds = Columns 1 through 30 228 229 230 231 232 233 234 235 237 238 239 240 241 242 244 245 246 247 248 249 250 251 252 253 254 255 256 258 259 260 Columns 31 through 47 261 262 263 264 265 266 267 269 270 271 272 273 274 275 276 277 278 remove_inds = Columns 1 through 30 228 229 230 231 232 233 234 235 237 238 239 240 241 242 244 245 246 247 248 249 250 251 252 253 254 255 256 258 259 260 Columns 31 through 55 261 262 263 264 265 266 267 269 270 271 272 273 274 275 276 277 278 280 281 282 283 284 285 286 287 remove_inds = Columns 1 through 30 228 229 230 231 232 233 234 235 237 238 239 240 241 242 244 245 246 247 248 249 250 251 252 253 254 255 256 258 259 260 Columns 31 through 60 261 262 263 264 265 266 267 269 270 271 272 273 274 275 276 277 278 280 281 282 283 284 285 286 287 289 290 291 292 293 Columns 61 through 69 294 295 296 297 298 299 300 301 302 remove_inds = Columns 1 through 30 228 229 230 231 232 233 234 235 237 238 239 240 241 242 244 245 246 247 248 249 250 251 252 253 254 255 256 258 259 260 Columns 31 through 60 261 262 263 264 265 266 267 269 270 271 272 273 274 275 276 277 278 280 281 282 283 284 285 286 287 289 290 291 292 293 Columns 61 through 81 294 295 296 297 298 299 300 301 302 304 305 306 307 308 309 310 311 312 313 314 315 s2 = 'Alabama Alaska Arizona Arkansas California Colorado Connecticut Delaware Florida Georgia Hawaii Idaho Illinois Indiana Iowa Kansas Kentucky Louisiana Maine Maryland Massachusetts Michigan Minnesota Mississippi Missouri Montana Ohio Oklahoma Oregon Pennsylvania Rhode Island South Carolina South Dakota Tennessee Texas Utah Vermont Virginia Washington West Virginia Wisconsin Wyoming'