Programming Interview Test - Programming (3) - Nairaland
Nairaland Forum › Science/Technology › Programming › Programming Interview Test (4241 Views)
| Re: Programming Interview Test by Nobody: 10:40am On May 26, 2016*. Modified: 1:13pm 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*. Modified: 4:52pm 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.
|
| Re: Programming Interview Test by Nobody: 8:54pm On May 26, 2016 |
crotonite:You can now have the crown until the next challenge.
|
| 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. |
Programming Interview Question: Invert A Binary Tree • 2 • 3 • 4
A Very Simple Loan Calculator In Vb6 Needed • Cyber Security Experts - Call For Members • What Kind Of Technologies Will I Need To Build A Fintech Application?