Skip to content

Instantly share code, notes, and snippets.

@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.
@lbvf50mobile
lbvf50mobile / largestValues.go
Created January 1, 2025 20:31
Leetcode: 515 Find Largest Value in Each Tree Row
// Leetcode: 515 Find Largest Value in Each Tree Row
// https://leetcode.com/problems/find-largest-value-in-each-tree-row/editorial/?envType=daily-question&envId=2024-12-25
// = = = = = = = = = = = = = =
// Accepted.
// Thanks God, Jesus Christ!
// = = = = = = = = = = = = = =
// Runtime: 0 ms Beats 100.00%
// Memory: 7.82 MB Beats 67.50%
package main
@lbvf50mobile
lbvf50mobile / maxScore.go
Created January 1, 2025 16:32
Leetcode: 1422. Maximum Score After Splitting a String.
// Leetcode: 1422. Maximum Score After Splitting a String.
// https://leetcode.com/problems/maximum-score-after-splitting-a-string/description/?envType=daily-question&envId=2025-01-01
// = = = = = = = = = = = = = =
// Accpeted.
// Thanks God, Jesus Christ!
// = = = = = = = = = = = = = =
// Runtime: 0 ms Beats 100.00%
// Memory: 3.94 MB Beats 51.06%
// 2025.01.01 Daily Challenge.
@lbvf50mobile
lbvf50mobile / minimumOperations.go
Created December 31, 2024 16:00
Leetcode: 2471. Minimum Number of Operations to Sort a Binary Tree by Level
// Leetcode: 2471. Minimum Number of Operations to Sort a Binary Tree by Level
// https://leetcode.com/problems/minimum-number-of-operations-to-sort-a-binary-tree-by-level/editorial/?envType=daily-question&envId=2024-12-23
// = = = = = = = = = = = = = =
// Accepted.
// Thanks God, Jesus Christ!
// = = = = = = = = = = = = = =
// Runtime: 105 ms Beats 43.83%
// Memory: 23.21 MB Beats 52.77%
// 2024.12.23 Daily Challenge.
// 2024.12.31 Implemented.