Stats: 3,191,834 members, 7,945,688 topics. Date: Tuesday, 10 September 2024 at 11:46 PM |
Nairaland Forum / Science/Technology / Programming / Programming Interview Test (3740 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 |
![]() ![]() ![]() ![]() ![]() 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 |
The Greatest Challenge Of The Programming World / Where Can I Get A Free Software That Does This? / Naija Coder: Test Your Coding Skills Now
(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. 14 |