Abico – Telegram
Abico
37 subscribers
26 photos
8 videos
25 links
Welcome to Abico Labs!

I will share my journey as a developer. You can join if you want to be part of this interesting journey!

Boost
https://news.1rj.ru/str/boost/AbicoLabs
Download Telegram
Happy new year guys
3👍1🐳1
I have started a challenge where I’m going to solve at least one LeetCode problem every day for the next month I’ll share my progress daily
#LeetCode #Challenge
1
Day1
It took me about 7 min
Try it out - Merge Strings Alternately
#LeetCode #Challenge #Whiplash2025
Day 2
This one was tricky i had to google a bit to solve this, i used euclidean algorithm

Let me explain this a bit so it's asking us to find the common divisor for the two given strings
First we'll have to check whether they have common divisor or not,
We can check whether they are equal or not by using this
String1 + String2 must be equal to String2 + String1

If that’s true, it means both strings share a pattern
and then we will find the GCD of the two strings by using their length
GCD(length of str1, length of str2)

let's say we got 2 so the GCD of the two string will be the first two character of either str1 or str2

Try it out - Greatest Common Divisor of Strings
#LeetCode #Challenge #Whiplash2025
🔥1
Day 3
This one was pretty easy
Basically it's asking us to check if each child's candies after adding the extra candies is greater than or equal to the maximum number of candies any child currently has
Try it out - Kids With the Greatest Number of Candies
#LeetCode #Challenge #Whiplash2025
I wasn’t able to solve problems for the past two days due to some personal reasons, but I’m back now!
Day4
This is not the efficient way of solving this problem, but it works..
I will update you with the new version
Try it out - Can Place Flowers
#LeetCode #Challenge #Whiplash2025
Day 5
Todays question asks us to reverse the vowels in a given string
for example if we are given
IceCreAm

the vowels are
I, e, e, A

we need to reverse this to
A, e, e, I

so that whole word becomes
AceCreIm

Again this is not the most efficient way of solving this i will update you with a better solution
Try it out - Reverse Vowels of a String
#LeetCode #Challenge #Whiplash2025
Abico
I solved Day 4's problem again and it beats 100% noicee For comparison The first one took 22ms
I just realized i used greedy algorithm lol
Basically greedy algorithm makes the best possible choice at each step in hopes of getting to the best global solution
Day 6
The first one was my initial solution it worked but it was pretty slow (2ms, Beats 35%) I wasn’t satisfied so I gave it another try and now it runs in (0ms, Beats 100%)!

Fun fact - this is my first medium challenge but it doesn't seem medium tho

Try it out - Reverse Words in a String
#LeetCode #Challenge
Day 7
The first one was my first solution but it wasn't accepted not because it doesn't work because it's was too slow so i had to google a bit to find a new solution

Basically the questions is asking use to find the product of all numbers in a list except the current one

My first solution creates new list for each number excluding the current number and multiplies the rest so imagine if we are given a list that has 50,000 number it would take ages

So the efficient way of solving this is using a technique called prefix and suffix product
Prefix - Multiply all elements before the current index
Suffix - Multiply all elements after the current index

For example let's say we are given
x = [1, 2, 3]

Then
Prefix = [1, 1, 2]

Suffix = [6, 3, 1]

And we multiply them(element-wise) to get the answer
Prefix * Suffix = [6, 3, 2]

Tbh idk how they came up with this it's genius

Try it out - Product of Array Except Self
#LeetCode #Challenge
Day 8
This was one was tough i couldn't solve it😭 i had to see a solution

The questions asks you to return true if there are 3 increasing sequences they don't have to be next to eachother

let's say we are given
nums = [15,100,10,12,5,13]

the 3 increasing sequences will be
[10, 12, 13]

it looks simple at first but it's not

Here is the explanation

Try it out - Increasing Triplet Subsequence
#LeetCode #Challenge