Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,150,648 members, 7,809,447 topics. Date: Friday, 26 April 2024 at 09:47 AM |
Nairaland Forum / Science/Technology / Programming / Programming Interview Test (3599 Views)
Programming Interview Question: Invert A Binary Tree (2) (3) (4)
Re: Programming Interview Test by Nobody: 10:40am On May 26, 2016 |
jacob05: Tried your code works fine but does not allow for P == 0 or P == N-1 as mentioned in the instruction: Sum of zero elements is assumed to be equal to 0. This can happen if P = 0 or if P = N−1. |
Re: Programming Interview Test by jacob05(m): 10:43am On May 26, 2016 |
Febup: It's just an implementation of crotonite's solution in Python ... not entirely mine... |
Re: Programming Interview Test by Nobody: 1:50pm On May 26, 2016 |
jacob05: I think his code is ok, but I cannot enter P = values to check his code. |
Re: Programming Interview Test by Nobody: 8:01pm On May 26, 2016 |
guyz, i finaly got it 100% here is my code... class Solution { thanks @febup for this challenge. 1 Like
|
Re: Programming Interview Test by Nobody: 8:54pm On May 26, 2016 |
crotonite: You can now have the crown until the next challenge. 1 Like
|
Re: Programming Interview Test by jacob05(m): 9:03pm On May 26, 2016 |
crotonite:Nice. In Python
|
Re: Programming Interview Test by Nobody: 9:10pm On May 26, 2016 |
jacob05: WOW...! python seems to be more concise than java. i think i need to learn python when i master enough of java. 1 Like |
Weekend Challenge For Practice: RLE Encoding / Sine Wave Inverter Using Arduino / Tried To Hire A Programmer In Lagos Today He Told Me $100 A Day Or Forget
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 16 |