AI InterviewSearch…Search problems, topics, or pages…Ctrl KGet started
Hardsubstitution

~120s

Repeated letters in a code

If RIPPLE is written as 613382 and LIFE as 8192, how is PILLER written?

Show the answer and the worked solution

Correct answer: B.

318826

Worked solution

  1. RIPPLE → 613382: R=6, I=1, P=3, P=3, L=8, E=2.
  2. LIFE → 8192: L=8 ✓, I=1 ✓, F=9, E=2 ✓.
  3. PILLER = P,I,L,L,E,R = 3,1,8,8,2,6 = 318826.

Answer: 318826.

The idea

Repeated letters anchor the mapping: the doubled digit in the code must sit where the doubled letter sits in the word.

Shortcut. PILLER begins with RIPPLE's P and I (3, 1) and ends with R (6), so the code is 31 _ 6 — this removes 318862 and 381826. The middle L, L, E = 8, 8, 2 then picks 318826 over 318286.

Common trap. "318862" — reversing the last two letters, as if the word ended in RE like RIPPLE's LE; PILLER ends E then R, so 2 then 6.

Repeated letters in a code — Aptitude Question

Repeated letters in a code: If RIPPLE is written as 613382 and LIFE as 8192, how is PILLER written? Answer and worked solution on CodeKairo.

Question

If RIPPLE is written as 613382 and LIFE as 8192, how is PILLER written?

Options

  1. 318286
  2. 318826
  3. 318862
  4. 381826
Show the answer and the worked solution

Correct answer: B. 318826

Worked solution

  1. RIPPLE → 613382: R=6, I=1, P=3, P=3, L=8, E=2.
  2. LIFE → 8192: L=8 ✓, I=1 ✓, F=9, E=2 ✓.
  3. PILLER = P,I,L,L,E,R = 3,1,8,8,2,6 = 318826.

Answer: 318826.

The idea

Repeated letters anchor the mapping: the doubled digit in the code must sit where the doubled letter sits in the word.

Shortcut. PILLER begins with RIPPLE's P and I (3, 1) and ends with R (6), so the code is 31 _ 6 — this removes 318862 and 381826. The middle L, L, E = 8, 8, 2 then picks 318826 over 318286.

Common trap. "318862" — reversing the last two letters, as if the word ended in RE like RIPPLE's LE; PILLER ends E then R, so 2 then 6.

All Coding & Decoding questions · placement mock tests