Filter
Exclude
Time range
-
Near
"Leetcode POTD 1400(Medium) : Construct K Palindrome Strings" Approach Summary: Edge Case Handling: If the length of the string s is less than k, it is impossible to form k palindromes, so return false. If the length of the string s is equal to k, each character can be placed in its own palindrome, so return true. Character Frequency Count: Use a frequency array (freq) to count the occurrences of each character in s. Count Odd Frequencies: Traverse the frequency array to count the number of characters that appear an odd number of times (oddCount). Key Observation: A character with an odd frequency must appear in its own palindrome (e.g., for "aaaab", the b must be a separate palindrome). Therefore, the number of odd-count characters (oddCount) determines the minimum number of palindromes required. Final Check: If oddCount greater than k, it's impossible to form k palindromes, so return false. Otherwise, return true, as we can distribute the even-count characters among the k palindromes. Key Insight : The approach leverages the relationship between odd-frequency characters and palindromes: Odd-count characters determine the minimum number of palindromes required. Even-count characters can be freely distributed across the palindromes. #CONNECT #LearningJourney #LearningIsFun #learningsuccess #learningsummit #CodingChallenge #CodingEverywhere #LearnInPublic
2
26
🚀Day 58 of the #gfg160 Challenge by @geeksforgeeks ! Found the longest substring with distinct characters in a string using sliding window approach TC O(n)💻🔥 #geekstreak2024 #geekstreak2025 #CodingChallenge #DSA #GFG #100DaysOfCode #100daysofcoding #Java #CodingEverywhere
18
74
Where’s the craziest place you’ve ever written code? On a bus? At the beach? Let me know in the comments! Code every time and everywhere—because every line brings you closer to your dreams. 💻✨ #CodeLife #ProgrammerVibes #CodingEverywhere
1
15
797
#CodingEverywhere edisi booth Dyson
11
3,220
Kumlara yazdım, dalgalar sildi. Tatil modunda bile Java'dan kopamıyorum. Deniz, kum ve Java... #JavaLife #SoftwareEngineer #CodingEverywhere #Güzelçamlı #Sunrise ☀️
12
1,138
Ngetwit #CodingEverywhere lagi aja deh daripada tepi jurang 😂 Sambil nunggu yang belanja sale di ION Orchard, sambil Practice Contest @COMPFEST UI JCPC
3
1
11
10,956
#CodingEverywhere edisi Masjid Bengkulu* *Bencoolen
2
16
7,720
Dzuizz #CodingEverywhere The Istana edition
12
3,276
Meanwhile Dzuizz tetap #CodingEverywhere kejar target holiday Informatics Olympiad Training 1 , self-paced tiap 3 hari musti deadline submit satu “episode” yang minimal 3-5 solved/accepted problems.
1
6
3,111
"CodingEverywhere"adlı e twinning projesiyle Okulumuz Müdür yardımcısı Alev SİNOĞLU Ulusal kalite etiketinden sonra Avrupa Kalite etiketi ile ödüllendirildi.Emeği geçen tüm ortaklarımıza teşekkürederiz.@istanbulilmem @buyukcekmecemem @istanbuletwinning @eerdoganergin @AlevSinolu
1
2
104
Dzuizz #CodingEverywhere edisi Rest Area di antara Nganjuk-Madiun. masya Allah 🤲
7
2
81
21,889
Kenapa #coding bisa sangat menyenangkan buat @AhmadDzuizz @ainunnajib #CodingEverywhere
1
3
27
1,828
I am delighted to share that I have passed the Aws certified cloud practitioner exam. The journey to cloud is just starting. Thanks @rishabk7 and everybody else for their guidance. #AWS #Cloud #codinglife #codingeverywhere #DevOps #webdevelopment
1
5
487
Next episode of #CodingEverywhere , got the table, waiting for the food. feat. @TeguhArifiyadi the Indonesia 🇮🇩 cyber leader
1
2
34
9,200
Dzuizz #CodingEverywhere episode Lau Pa Sat while waiting for available seats
8
6
149
30,117
Dzuizz #CodingEverywhere sampai ketiduran di mobil gus @anvie 😅 sembari kami nyasar muterin Jogja abis 1 jam gara-gara ditipu koordinat @BakpiaKencana yang fiktif di @googlemaps , perlu dicek itu siapa tahu sabotase persaingan usaha. Sudah saya report harusnya sudah hilang.
2
13
16,166
@AhmadDzuizz #CodingEverywhere episode: in the air 🛩️ behind the cockpit & the pilots 💪
2
3
78
24,481
Dan langsung diaksi oleh @AhmadDzuizz 😅 coding sejak pagi nunggu pesawat bikin web app catur ♟️ dengan Javascript HTML & CSS, di udara di pesawat 🛩️ pun di darat di mobil #CodingEverywhere Selesai dan bisa dimainkan, dia demokan waktu kami di tol Solo ke arah Mojokerto 👍👏
2
2
62
12,483
Dengan WiFi jadinya @AhmadDzuizz bisa #CodingEverywhere edisi Kereta Api Argo Wilis 😂
6
45