Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,201,680 members, 7,979,290 topics. Date: Saturday, 19 October 2024 at 05:24 AM |
Nairaland Forum / Nairaland / General / Jobs/Vacancies / Andela: IT Training And Job (639390 Views)
Letter To All Fresh Graduates and Job seekers / Andela: IT Training And Job - Jobs/vacancies / Similarities Between Football And Job (2) (3) (4)
(1) (2) (3) ... (160) (161) (162) (163) (164) (165) (166) ... (263) (Reply) (Go Down)
Re: Andela: IT Training And Job by Nasalino: 9:52am On Mar 07, 2018 |
Has anyone received the second assessment test ? the technical part that is supposed to come after the multiple choice |
Re: Andela: IT Training And Job by eph12(m): 12:24pm On Mar 07, 2018 |
Nasalino:Your questions were multiple choices all through? |
Re: Andela: IT Training And Job by Nobody: 1:13pm On Mar 07, 2018 |
thanks all... would do that and check back.... actually i used word= word. toLowerCase()....that worked fine with bracket(my editor) |
Re: Andela: IT Training And Job by stevenakp(m): 2:11pm On Mar 07, 2018 |
Afolabi6046: hey, mail me and send me your code. |
Re: Andela: IT Training And Job by Nobody: 12:12am On Mar 08, 2018 |
eph12:can you explain further, i'm a newbie sorry |
Re: Andela: IT Training And Job by Nobody: 12:13am On Mar 08, 2018 |
function isIsogram(word){ word = word.toLowerCase(); var i, j; for ( i = 0; i<word.length; i += 1){ for ( j = i + 1; j<word.length; j += 1){ if ( word[i] == word[j] ){ return false; } } } return true; } .......................................guys that my code, tried your options, still not working |
Re: Andela: IT Training And Job by eph12(m): 8:47am On Mar 08, 2018 |
Afolabi6046:You should sort your word first so they are arranged alphabetically after converting to lower case. Before converting to lower case and sorting, you should have something like this if ( word !== string || word !== "" ){ return false; } |
Re: Andela: IT Training And Job by benfluleck: 9:37am On Mar 08, 2018 |
Afolabi6046: Hi, first of all starting a post with "still not working" doesn't help us debug a solution for you. Please provide a description of the error that you are getting so we can help you better especially for peeps who are just stumbling on this thread. Running the code on my editor throws no errors, So it is up to you to tell me what the exact nature of the problem is so I and others can help. |
Re: Andela: IT Training And Job by stevenakp(m): 10:01am On Mar 08, 2018 |
Afolabi6046: the test cases have these calls to the function isIsogram( ) isIsogram( " " ) you've been trying to convert a null value and an empty string to lowercase, which of course won't work. try this. 1. write a condition to check if "word" is undefined (which take care of the null value passed to the function) or if "word" is lesser than or equal to zero (which takes care of the empty string passed to the function) 2. you should return "false" if any of this is true. 3. carry on with your algorithm. |
Re: Andela: IT Training And Job by Nobody: 8:06pm On Mar 08, 2018 |
benfluleck:i actually posted a picture of the error on page 161....and as i mentioned, i ran the code on my editor and it works fine....i just don't know why i'm still getting the "cannot read property toLowerCase of undefined" error |
Re: Andela: IT Training And Job by Nobody: 8:08pm On Mar 08, 2018 |
thanks a lot bro....really appreciate, happy to learn from bosses like you stevenakp: |
Re: Andela: IT Training And Job by Nobody: 8:10pm On Mar 08, 2018 |
eph12:would definitely check this out....thanks a lot Manyoo fan |
Re: Andela: IT Training And Job by Nobody: 9:02pm On Mar 08, 2018 |
hi peeps, pls i need tips on how to prepare for an IT support role interview... this is very urgent pls |
Re: Andela: IT Training And Job by Nobody: 12:20am On Mar 09, 2018 |
function isIsogram(word){ if ( word == "" || word <= 0 ){ return false; } word = word.toLowerCase(); var i, j; for ( i = 0; i<word.length; i += 1){ for ( j = i + 1; j<word.length; j += 1){ if ( word[i] == word[j] ){ return false; } } } return true; } ........................guys i ran this again, gave me the " TypeError: Cannot read property 'toLowerCase' of undefined" again i think i'm doing something wrong |
Re: Andela: IT Training And Job by SoftDev: 4:53pm On Mar 09, 2018 |
Afolabi6046: //Try this... function isIsogram(word) { if (word == "" || word <= 0) { return false; } word.toLowerCase(); var i, j; for (i = 0; i < word.length; i += 1) { for (j = i + 1; j < word.length; j += 1) { if (word[i] == word[j]) { return false; } } } return true; } |
Re: Andela: IT Training And Job by stevenakp(m): 5:52pm On Mar 09, 2018 |
Application has started for cycle 32. just in case you know of anyone that missed the previous application. deadline is 29th march. |
Re: Andela: IT Training And Job by aitcoded: 3:39am On Mar 10, 2018 |
. |
Re: Andela: IT Training And Job by aitcoded: 3:40am On Mar 10, 2018 |
. |
Re: Andela: IT Training And Job by Nobody: 12:47pm On Mar 10, 2018 |
function isIsogram(word){ if ( word === undefined || word.length <= 0 ){ return false; } word = word.toLowerCase(); var i, j; for ( i = 0; i<word.length; i += 1){ for ( j = i + 1; j<word.length; j += 1){ if ( word[i] == word[j] ){ return false; } } } return true; } PASSED thanks everyone |
Re: Andela: IT Training And Job by dolapo17: 9:34pm On Mar 11, 2018 |
function isIsogram(word){ var newArray = word.split(''); var result = []; var hash = new Object(); for(var i = 0; i < newArray.length; i++){ var element = newArray[i]; if(!hash[element]){ hash[element] = true; result.push(element); } } if(result.length !== newArray.length){ return false; }else { return true; } } can anyone help. the code works fine in my text editor but doesnt work in qualified.io gives this error message: TypeError: Cannot read property 'split' of undefined |
Re: Andela: IT Training And Job by dolapo17: 9:36pm On Mar 11, 2018 |
dolapo17: |
Re: Andela: IT Training And Job by Adex001(m): 6:31am On Mar 12, 2018 |
[quote author=dolapo17 post=65755137][/quote] try making sure the word entered is really a word. Example : if I enter a value as elep@ha$nt, what's your program going to do? |
Re: Andela: IT Training And Job by stevenakp(m): 8:10am On Mar 12, 2018 |
hey, Has anyone received the mail for interview from andela ? |
Re: Andela: IT Training And Job by stevenakp(m): 8:33pm On Mar 14, 2018 |
stevenakp: ? |
Re: Andela: IT Training And Job by Ephaig: 11:25pm On Mar 14, 2018 |
stevenakp:No! Have you? |
Re: Andela: IT Training And Job by joeeasy44: 9:17am On Mar 15, 2018 |
We'll start receiving invitations tomorrow |
Re: Andela: IT Training And Job by Ephaig: 12:52pm On Mar 15, 2018 |
joeeasy44:It has come in |
Re: Andela: IT Training And Job by collinic: 2:10pm On Mar 15, 2018 |
I just received mine |
Re: Andela: IT Training And Job by collinic: 2:13pm On Mar 15, 2018 |
joeeasy44: how far did u get the invite? |
Re: Andela: IT Training And Job by joeeasy44: 2:41pm On Mar 15, 2018 |
collinic:yep |
Re: Andela: IT Training And Job by collinic: 2:51pm On Mar 15, 2018 |
joeeasy44: congrats!!! |
Re: Andela: IT Training And Job by joeeasy44: 4:04pm On Mar 15, 2018 |
collinic:Thanks man, Getting in is the koko |
(1) (2) (3) ... (160) (161) (162) (163) (164) (165) (166) ... (263) (Reply)
How To Apply For Nigeria Immigration Service (NIS) Recruitment 2017 / Federal Road Safety Commission 2018 Recruitment: How To Apply / FIRS To Recruit 1,250 New Staff
(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. 30 |