Skip to content

Instantly share code, notes, and snippets.

@lbvf50mobile
lbvf50mobile / canConstruct.go
Created January 11, 2025 09:16
Leetcode: 1400. Construct K Palindrome Strings
// Leetcode: 1400. Construct K Palindrome Strings
// https://leetcode.com/problems/construct-k-palindrome-strings/description/?envType=daily-question&envId=2025-01-11
// = = = = = = = = = = = = = =
// Accepted.
// Thanks God, Jesus Christ!
// = = = = = = = = = = = = = =
// Runtime: 0 ms Beats 100.00%
// Memory: 8.14 MB Beats 25.00%
// 2025.01.11 Daily Challenge.
@lbvf50mobile
lbvf50mobile / wordSubsets.go
Last active January 10, 2025 21:51
Leetcode: 916. Word Subset
// Leetcode: 916. Word Subset
// https://leetcode.com/problems/word-subsets/?envType=daily-question&envId=2025-01-10
// = = = = = = = = = = = = = =
// Accepted.
// Thanks God, Jesus Christ!
// = = = = = = = = = = = = = =
// Runtime: 47 ms Beats 14.29%
// Memory: 15.67 MB Beats 9.52%
// 2025.01.10 Daiy Challenge.
@lbvf50mobile
lbvf50mobile / prefixCount.go
Created January 9, 2025 07:35
Leetcode: 2185. Counting Words With a Given Prefix
// Leetcode: 2185. Counting Words With a Given Prefix
// https://leetcode.com/problems/counting-words-with-a-given-prefix/submissions/1502707677/?envType=daily-question&envId=2025-01-09
// = = = = = = = = = = = = = =
// Accepted.
// Thanks God, Jesus Christ!
// = = = = = = = = = = = = = =
// Runtime: 0 ms Beats 100.00%
// Memory: 5.45 MB Beats 42.37%
// 2025.01.09 Daily Challenge.
@lbvf50mobile
lbvf50mobile / countPrefixSuffixPairs.go
Created January 8, 2025 09:10
Leetcode: 3042. Count Prefix and Suffix Pairs I
// Leetcode: 3042. Count Prefix and Suffix Pairs I
// https://leetcode.com/problems/count-prefix-and-suffix-pairs-i/?envType=daily-question&envId=2025-01-08
// = = = = = = = = = = = = = =
// Accepted.
// Thanks God, Jesus Christ!
// = = = = = = = = = = = = = =
// Runtime: 0 ms Beats 100.00%
// Memory: 4.67 MB Beats 20.83%
// 2025.01.08 Daily Challenge.
@lbvf50mobile
lbvf50mobile / stringMatching.go
Last active January 7, 2025 08:13
Leetcode: String Matching in an Array
// Leetcode: 1408. String Matching in an Array
// https://leetcode.com/problems/string-matching-in-an-array/description/?envType=daily-question&envId=2025-01-07
// = = = = = = = = = = = = = =
// Accepted.
// Thanks God, Jesus Christ!
// = = = = = = = = = = = = = =
// Runtime: 0 ms Beats 100.00%
// Memory: 4.25 MB Beats 63.64%
// 2025.01.07 Daily Challenge.
@lbvf50mobile
lbvf50mobile / minOperations.go
Created January 6, 2025 20:54
Leetcode: 1769. Minimum Number of Operations to Move All Balls to Each Box
// Leetcode: 1769. Minimum Number of Operations to Move All Balls to Each Box
// = = = = = = = = = = = = = =
// Accepted.
// Thanks God, Jesus Christ!
// = = = = = = = = = = = = = =
// Runtime: 0 ms Beats 100.00%
// Memory: 7.93 MB Beats 16.22%
// 2025.01.06 Daily Challenge.
package main
@lbvf50mobile
lbvf50mobile / shiftingLetters.go
Created January 5, 2025 22:11
Leetcode: 2381. Shifting Letters II
// Leetcode: 2381. Shifting Letters II
// https://leetcode.com/problems/shifting-letters-ii/?envType=daily-question&envId=2025-01-05
// = = = = = = = = = = = = = =
// Accepted.
// Thanks God, Jesus Christ!
// = = = = = = = = = = = = = =
// Runtime: 1 ms Beats 80.00%
// Memory: 12.76 MB Beats 100.00%
// 2025.01.05 Daily Challenge.
@lbvf50mobile
lbvf50mobile / countPalindromicSubsequence.go
Last active January 4, 2025 20:07
Leetcode: 1930. Unique Length-3 Palindromic Subsequences
// Leetcode: 1930. Unique Length-3 Palindromic Subsequences
// https://leetcode.com/problems/unique-length-3-palindromic-subsequences/?envType=daily-question&envId=2025-01-04
// = = = = = = = = = = = = = =
// Accepted.
// Thanks God, Jesus Christ!
// = = = = = = = = = = = = = =
// Runtime: 564 ms Beats 38.46%
// Memory: 17.84 MB Beats 23.08%
// 2025.01.04 Daily Challenge.
// https://gist.github.com/lbvf50mobile/0e760ac5467821a604d54f9a0a8d96cc
@lbvf50mobile
lbvf50mobile / waysToSplitArray.go
Last active January 3, 2025 22:21
Leetcode: 2270. Number of Ways to Split Array
// Leetcode: 2270. Number of Ways to Split Array
// https://leetcode.com/problems/number-of-ways-to-split-array/description/?envType=daily-question&envId=2025-01-03
// = = = = = = = = = = = = = =
// Accepted.
// Thanks God, Jesus Christ!
// = = = = = = = = = = = = = =
// Runtime: 1 ms Beats 65.00%
// Memory: 11.59 MB Beats 22.50%
package main
@lbvf50mobile
lbvf50mobile / vowelStrings.go
Last active January 2, 2025 21:40
Leetcode: 2559. Count Vowel Strings in Ranges
// Leetcode: 2559. Count Vowel Strings in Ranges
// https://leetcode.com/problems/count-vowel-strings-in-ranges/editorial/?envType=daily-question&envId=2025-01-02
// = = = = = = = = = = = = = =
// Accepted.
// Thanks God, Jesus Christ!
// = = = = = = = = = = = = = =
// Runtime: 0 ms Beats 100.00%
// Memory: 22.75 MB Beats 25.00%
// 2025.01.02 Daily Challenge.