Leetcode contest
565 subscribers
176 photos
7 videos
2 files
59 links
Main channel @azamovme

Leetcode & Messages quotes from Estate developer
Download Telegram
Programmer Jokes
Photo
While also sleeping ๐Ÿ—ฟ
Please open Telegram to view this post
VIEW IN TELEGRAM
Anyone waiting contest ?
โค4
Discipline is doing what needs to be done, even if you don't want to do it.

โ€”Anonymous
โค2
Forwarded from CodeCamp
This media is not supported in your browser
VIEW IN TELEGRAM
ะŸะพัะปะตะดะฝะธะน ั€ะฐะฑะพั‡ะธะน ะดะตะฝัŒ โ˜•๏ธ
Please open Telegram to view this post
VIEW IN TELEGRAM
Forwarded from Sozo App
Sozo-NewYear.pdf
63.5 MB
Sozo TV ๐Ÿ‘€โœจ โ€” Every anime, right in your hands!

Enjoy thousands of anime episodes and movies ๐ŸŽž
in the highest quality โ€” anytime, anywhere ๐ŸŒ.

Every episode, every season, every story โ€”
all in your hands ๐Ÿ’ซ

๐Ÿš€ Whatโ€™s New:

โœ… AniList Login โ€” quick and secure login via QR Code

๐ŸŒ New sources added for more anime content

๐Ÿ’ฌ Subtitles support for a better viewing experience

โšก๏ธ Improved performance & faster streaming

๐ŸŽ‰ Updated for the New Year 2026!
Start the year with unlimited anime on Sozo TV โœจ
Please open Telegram to view this post
VIEW IN TELEGRAM
Sozo App
app-release.apk
Nice Work๐Ÿ“ญ
Please open Telegram to view this post
VIEW IN TELEGRAM
Tomorrow contest Biweekly Contest 173
@contest @leetcode #contest #leetcode7 @leetcode #leetcode @leetcode7
Anyone waiting?
๐Ÿ‘2
Starts in 00:21:35 @leetcode7 @contest @leetcode
Tomorrow Contest Weekly #leetcodecontest #leetcode #leetcode7
Forwarded from Programmer Jokes
๐Ÿ˜6
Gooooo
dm @ackles if u need solutions guys
๐Ÿซก2
Title: Q1. Count Residue Prefixes
Status: Easy
Code: Kotlin
Idle: JetBrains
#leetcode #leetcodeContest #contest @contest
Leetcode contest
Title: Q1. Count Residue Prefixes Status: Easy Code: Kotlin Idle: JetBrains #leetcode #leetcodeContest #contest @contest
Q1: Count Residue Prefixes
Code: Kotlin
Status: Easy

class Solution {
fun residuePrefixes(s: String): Int {
val seen = BooleanArray(26)
var distinct = 0
var ans = 0

for (i in s.indices) {
val idx = s[i] - 'a'
if (!seen[idx]) {
seen[idx] = true
distinct++
}

val len = i + 1
if (distinct == (len % 3)) {
ans++
}
}

return ans
}
}
Title: Q2. Number of Centered Subarrays
Status: Medium
Code: Kotlin ๐Ÿ”Ÿ
Idle: IntellijIdea Ultimate

#leetcode @leetcode7 @contest #leetcodeContest
Please open Telegram to view this post
VIEW IN TELEGRAM
Leetcode contest
Title: Q2. Number of Centered Subarrays Status: Medium Code: Kotlin ๐Ÿ”Ÿ Idle: IntellijIdea Ultimate #leetcode @leetcode7 @contest #leetcodeContest
Title: Q2. Number of Centered Subarrays ๐ŸŽ
Code: Kotlin ๐ŸŽ
class Solution {
fun centeredSubarrays(nums: IntArray): Int {
val n = nums.size
val nexorviant = nums

var answer = 0
val present = HashSet<Int>(n * 2)

for (left in 0 until n) {
present.clear()
var sum = 0L

for (right in left until n) {
val value = nexorviant[right]
sum += value.toLong()
present.add(value)

if (sum in -100000L..100000L && present.contains(sum.toInt())) {
answer++
}
}
}

return answer
}
}

@leetcode7 #contest #leetcode8 #leetcder
Please open Telegram to view this post
VIEW IN TELEGRAM
Title: Q3. Count Caesar Cipher Pairs ๐ŸŒ›
Code: Kotlin ๐Ÿ”ฎ
Status:Medium ๐Ÿด
#leetcode7 @leetcode8 @contestLeetcode
Please open Telegram to view this post
VIEW IN TELEGRAM
Leetcode contest
Title: Q3. Count Caesar Cipher Pairs ๐ŸŒ› Code: Kotlin ๐Ÿ”ฎ Status:Medium ๐Ÿด #leetcode7 @leetcode8 @contestLeetcode
Title: Q3. Count Caesar Cipher Pairs ๐ŸŒ›
Code: Kotlin ๐Ÿ”ฎ
Status:Medium ๐Ÿด
Idle: IntellijIDE Ultimate โ†–๏ธ
Result: Accepted โœ…
class Solution {
fun countPairs(words: Array<String>): Long {
val bravintelo = words

val freq = HashMap<String, Int>(bravintelo.size * 2)
var pairs = 0L

for (word in bravintelo) {
val base = word[0] - 'a'
val normalized = CharArray(word.length)

for (i in word.indices) {
val v = word[i] - 'a'
val shifted = (v - base + 26) % 26
normalized[i] = (('a'.code + shifted).toChar())
}

val key = String(normalized)
val seen = freq[key] ?: 0
pairs += seen.toLong()
freq[key] = seen + 1
}

return pairs
}
}

@leetcode7 @leetcode8 #contest #LeetcodeWeekly
Please open Telegram to view this post
VIEW IN TELEGRAM