How i've failed programming challenge on Turing.com

preview_player
Показать описание
Thats how its done when there is no preparation and warm up.

1. I tried to copy the template to VSCode using Ctrl+C - Ctr+V and just messed up the template.
2. Incorrectly read the task. It should do reverse() not sort().
3. Did too little sample tests (thats why in showed OK inspite of major logical mistake).
4. I didn't do any warmups for a month. In fact i haven't coded in a while - thats why i kept forgetting regex.
5. And all that lead to complete lack of time for a second challange.

So im gonna continue filming my attempts at taking tests - i hope it is a good practice for live interviews.
Рекомендации по теме
Комментарии
Автор

Not many developers have the courage to show their failures. Thanks Brother

honorebarera
Автор

I love the fact that you had the courage to open a real test, I am also in the Coding Challenge Phase too, I am just inspired. Good work Sir

waifufx
Автор

Best solution with O(n) would be two pointer technique and sliding window..for Problem one..but taking real test live was really great

vyhxbbe
Автор

It was really fun. Anger, depression, hate and hope all in one video. Good luck next time :)

oinn
Автор

Respect for going live with this, very nice. Keep it up.

the_CodingTraveller
Автор

29:00 "Yeah I am not gonna make it in two minutes" cracked me up lmao but thanks for the video tho

mubashirwaheed
Автор

Thank you for posting this! I also made the mistake of underestimating it and just going in without any practice for months.

jpg
Автор

Yo vi tu video ahora, y te agradezco mucho por compartir este sensacional video 🚀🚀🚀

hextiandro
Автор

Thank you sir! I appriciate your effort. I learned a lot!

aadil
Автор

The first question was all about two pointers.

Martin-Kalema
Автор

I failed the challenge too, I felt my first question didn't give me enough information or explanation to solve it, so I by passed and solved the second challenge in less than 5 minutes. Even though I failed the challenge, the tiring profile opened for me. Am just going to fill the profile while waiting for a response

programmingchannel
Автор

Thanks for sharing! I really needed it.

mukailarashid
Автор

You did your best bro! I have been in that scope before

MecksOnwenu
Автор

Use 2 pointers approach to solve the problem and make sure to check if the current character is an Alphabet

PahellyChakma-mzvq
Автор

The answer for me was use ascii of every number and ascii str1 - ascii str2 and you will find the letrero and convert to letter

boris
Автор

this is my simple solution for first problem, i don't know why we have to use such complex regex like that:

string input = "a-bC-dEf=ghlj!!";

string alphabets = "";
for (int i = input.length() - 1; i >= 0; i--) {
if (isalpha(input[i])) {
alphabets += input[i];
}
}

int j = 0;
for (int i = 0; i < input.length(); i++) {
if (isalpha(input[i])) {
input[i] = alphabets[j++];
}
}

problem 2 is also simple too, just some basic recursive

shelldog
Автор

you can not copy and paste in the turing editor.. something important to note

ddarlio
Автор

i think you can just add these string characters reversely into array and then just convert it into string .This is an easy method
let str='ab-cd'
let newStr=[]

for (let i = 0, j = str.length - 1; i < str.length; i++, j--) {
newStr[j] = str[i];

}

// Convert the array back to a string
newStr = newStr.join('');
console.log(newStr)

abdulrafayakber
Автор

Wow. You did a good job. The only thing I think you missed was you used an array sort method instead of an array reverse method, on the array with only letters.

Anyways. I never would have solved this honestly. 😂

SomtoMaduewesi
Автор

def reverse_letters_only(S):
letters = [c for c in S if c.isalpha()]
reversed_letters = letters[::-1]
result = [c if not c.isalpha() else reversed_letters.pop(0) for c in S]
return ''.join(result)

louispaulet