886 - Named Extension Dialing

All about problems in Volume 8. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

Post Reply
brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

886 - Named Extension Dialing

Post by brianfry713 »

Input:

Code: Select all

A A 1000
B B 2000
22
AC output:

Code: Select all

1000 2000
Check input and AC output for thousands of problems on uDebug!
uDebug
A great helper
Posts: 475
Joined: Tue Jul 24, 2012 4:23 pm

Re: 886 - Named Extension Dialing

Post by uDebug »

brianfry713,

Thanks so much this helpful test case. It's really great.

Also, here are some test cases that helped me test / debug my code.

Input:

Code: Select all

Xanadu Rodriguez 1212
Adalynn Shami 5725
Ama Wang 0001
Medina Baldimitzi 2348
Karina Ralim 6439
Karasha Raikomotso 3197
Kimi Raiko 6788
Ada Wang 0002
57
1211
0001
5725
57254
5724
5724566
97
29264565656565656565
29264
67
AC Output:

Code: Select all

6439 3197 6788
0
0001
5725
6439
3197 6788
3197
1212
0
0001 0002
0
Check input and AC output for over 7,500 problems on uDebug!

Find us on Facebook. Follow us on Twitter.
aerofoil.kite
New poster
Posts: 12
Joined: Tue Dec 06, 2011 8:59 pm
Location: Bangladesh
Contact:

Re: 886 - Named Extension Dialing

Post by aerofoil.kite »

Getting WA.. Could you plz give me some cases.?

Code: Select all

Removed after AC
Last edited by aerofoil.kite on Tue May 20, 2014 5:03 pm, edited 1 time in total.
Mir Shahriar Sabuj
brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 886 - Named Extension Dialing

Post by brianfry713 »

Try input:

Code: Select all

A A 1234
12
Output should be 0
Check input and AC output for thousands of problems on uDebug!
aerofoil.kite
New poster
Posts: 12
Joined: Tue Dec 06, 2011 8:59 pm
Location: Bangladesh
Contact:

Re: 886 - Named Extension Dialing

Post by aerofoil.kite »

Code: Select all

A A 1234
12
Output: 0
This helps. Thank you, sir
Mir Shahriar Sabuj
Post Reply

Return to “Volume 8 (800-899)”