₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,366 members, 8,511,521 topics. Date: Sunday, 01 November 2026 at 07:43 PM

Toggle theme

Deicide's Posts

Nairaland Forum › Deicide's Profile › Deicide's Posts

1 2 3 4 5 6 7 8 ... 10 11 12 13 14 15 16 17 18 (of 226 pages)

Programming › Re: Bun.js: Is It The Future? by Deicide: 8:56pm On Jan 28, 2024
switching wouldn't take more than 10 minutes though
qtguru:
Would you switch something, when you already have a business running on node and making money, there is no cost benefit for switching as a business, unless you're one of those coders who like to switch for the sake of something new.
Webmasters › Re: Finally Passed The Turing Coding Challenge. by Deicide: 5:02pm On Jan 27, 2024
Not coding challenge
Af0nja:
What is practical test? You mean coding challenge? I've passed it
Webmasters › Re: Finally Passed The Turing Coding Challenge. by Deicide: 1:39pm On Jan 27, 2024
Have you don practical test?
Crime › Re: Government Should Leave Yahoo Boys Alone - Elderly Nigerian Man Says (Video) by Deicide: 12:45pm On Jan 25, 2024
A fool at 40....
Business › Re: Forbes’ Top 20 African Billionaires 2024 (Full List) by Deicide: 3:35pm On Jan 23, 2024
I neva see 5 naira from am b4
Putinofrussia:
Otedola back after 6 years.
I have never seen any billionaire in Nigeria give as he does.
Givers don't lack.
Welcome,sir
Crime › Re: How Army Rescued Nabeeha & Ariyo's Sisters From Kidnappers In Abuja (Photos) by Deicide: 8:10pm On Jan 21, 2024
this one is probably a lie because if they were recused, how many kidnappers did they catch
coputa:
Why the double speak,in the earlier report they said 100 million was paid before their release
Crime › Re: Kidnappers Invade Army Estate In Abuja, Abduct Two by Deicide: 1:33pm On Jan 19, 2024
I thought they said yahoo yahoo would prevent things like this
Education › Re: 16 Facts About David Akanmu, UNILAG 5.0 CGPA Graduate by Deicide: 6:32pm On Jan 18, 2024
17. people called him akamu to make jest of him in school
Programming › Re: Programming Section Moderator Recruitment by Deicide: 8:47am On Jan 18, 2024
Also please seun remove this dude as a moderator of this section mukina2
Sports › Re: Super Eagles Fans.. What Did our Coach Actually Do Wrong? by Deicide: 12:27pm On Jan 15, 2024
Like say no be connection most of them use get that position grin una neva see anything for this country
Foreign Affairs › Re: 100 Days Of War On Gaza: Israel Kills 23,968 Palestinians by Deicide: 7:09am On Jan 15, 2024
who day count
Programming › Re: Help With Assignments On Linux by Deicide: 1:51pm On Jan 13, 2024
why don't you leverage ChatGPT?
Programming › Re: How Do You Go About Hosting by Deicide: 2:14am On Jan 12, 2024
use digital ocean get a domain name and then do what the second comment says
Romance › Re: How Do You Reply A Friend Who Said This About Your Spouse? by Deicide: 8:51am On Jan 11, 2024
Na una day keep useless friend
Romance › Re: Romance Section Moderators Wanted by Deicide: 3:27am On Jan 09, 2024
This look like a nice thread to write a python scrapper for and do some analysis cool
Food › Re: Red Apple Or Green Apple!.. by Deicide: 4:25pm On Jan 08, 2024
seconded
Timoleon:
Fufu
Programming › Re: Which Of These Two Laptops Is Better For Programming by Deicide: 3:23pm On Jan 06, 2024
The one with keyboard light, trust me wink
Family › Re: Please Should Continue My Marriage Plan With Her After Hearing This? by Deicide: 3:19pm On Dec 27, 2023
Fake story
Fashion › Re: Why Do Women Do This? (Pic) by Deicide: 2:41pm On Dec 23, 2023
It's the same annoyance when they where outfit that shows their cleavages and when you stir they start adjusting making you look like a creep.
Health › Re: Fresh Coronavirus Outbreak Hit Benue, 25 Cases Reported by Deicide: 7:53am On Dec 13, 2023
Tor, it's not like Corona is serious anyways
Education › Re: Deeper Life High School Fees (photos) by Deicide: 2:24am On Dec 08, 2023
nawa o
Computers › Re: Ubuntu Linux by Deicide: 1:59pm On Dec 06, 2023
preciouswoman66:
Have anyone try using Windows USB modem with Wine in Linux?

You mind sharing your experience and how you did it? smiley
i dont even understand the question
Christianity Etc › Re: Rhoda Jatau Languishes In Prison After Sharing Video Of Deborah Samuel Killing by Deicide: 9:23am On Dec 06, 2023
We would ever forget what they did to that girl Deborah
Programming › Re: What Is The Best API? by Deicide: 10:09am On Dec 05, 2023
Level 3 API
Christianity Etc › Re: When A Guy Promised You Marriage Just Because Of Sex by Deicide: 10:09am On Dec 03, 2023
Most females go into relationship thinking they are wiser than the guy.
Food › Re: See Different Ways Plantain Can Be Enjoyed. (pictures) by Deicide: 5:54pm On Dec 02, 2023
The one way them roast nkor?
Politics › Re: CBN To Freeze Bank Accounts Without BVN, NIN Starting April 2024 by Deicide: 10:47pm On Dec 01, 2023
This is a needed development. Someone can just open Opay account without providing BVN or NIN and they mostly use this type of account for fraud
Romance › . by Deicide(op):
.
Programming › Re: [AOC December 2023] by Deicide(op):
Day 1: Trebuchet?!

Writing the solution of this one in Go cool
part 1
func Trebuchet(input string) int {
data, err := utils.ReadFile(input)
if err != nil {
fmt.Println(err)
}
sum := 0
v1 := strings.Split(data, "\n" )
for _, y := range v1 {
left := 0
right := len(y) - 1
ptr := 0
a := 0
b := 0
for ptr <= len(y) {
if y[left] >= 48 && y[left] <= 57 {
a = int(y[left] - 48)
} else {
left++
}
if y[right] >= 48 && y[right] <= 57 {
b = int(y[right] - 48)
} else {
right--
}
ptr++
}
v2, _ := strconv.ParseInt(fmt.Sprintf("%d%d", a, b), 10, 64)
sum += int(v2)
}
return sum
}


part 2
Just add a function to transform the input because it was tricky, I have to do stuff I am not proud of

func transform(word string) string {
word = strings.ReplaceAll(word, "twone", "21" )
word = strings.ReplaceAll(word, "eightwo", "82" )
word = strings.ReplaceAll(word, "nineight", "98" )
word = strings.ReplaceAll(word, "eightthree", "83" )
word = strings.ReplaceAll(word, "threeight", "38" )
word = strings.ReplaceAll(word, "fiveight", "58" )
word = strings.ReplaceAll(word, "nineight", "98" )
word = strings.ReplaceAll(word, "oneight", "18" )
word = strings.ReplaceAll(word, "sevenine", "79" )

v := []string{"one", "two", "three", "four", "five", "six", "seven", "eight", "nine"}
for x := range v {
word = strings.ReplaceAll(word, fmt.Sprintf("%d", x+1), v[x])
}
p := []string{"1", "2", "3", "4", "5", "6", "7", "8", "9"}
for x := range p {
word = strings.ReplaceAll(word, v[x], p[x])
}
return word
}
Health › Re: Nigerian Nurse Sacked & Deported From The UK For Praying For Patient by Deicide: 6:09pm On Nov 30, 2023
If Na so prayer day work you for no leave Nigeria

1 2 3 4 5 6 7 8 ... 10 11 12 13 14 15 16 17 18 (of 226 pages)