Q2 #929
Answered
by
imalkipinto
Dilusha-Ranasingha
asked this question in
Q&A
Q2
#929
|
consider converting an old-format NIC into a 12-digit EIC by: |
Answered by
imalkipinto
Dec 16, 2025
Replies: 1 comment
|
Position Based Transformations Insert or remove characters at fixed positions No Information Loss Never discard original digits(only expand/reform) Explicit Reverse Function Implement and test NIC → EIC and EIC → NIC as inverse functions. Validation . Validate structure and length before reversing to avoid corruption of outputs. |
0 replies
Answer selected by
Dilusha-Ranasingha
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Position Based Transformations
Insert or remove characters at fixed positions
No Information Loss
Never discard original digits(only expand/reform)
Explicit Reverse Function
Implement and test NIC → EIC and EIC → NIC as inverse functions.
Validation .
Validate structure and length before reversing to avoid corruption of outputs.