Pinned Loading
-
Calculate Money in LeetCode Bank - L...
Calculate Money in LeetCode Bank - LeetCode - Day 10 1[Question](https://leetcode.com/problems/calculate-money-in-leetcode-bank/description)
23# Intuition4Spent a lot of time thinking on this one and trying different solutions. Even tried using an outer and inner loop, but the solution began to look too complex for an "Easy" problem. Finally, I decided to use a single loop which I reset every 7 days to signal the passing of a week.
5 -
1-bit and 2-bit Characters - LeetCod...
1-bit and 2-bit Characters - LeetCode - Day 11 1[Question](https://leetcode.com/problems/1-bit-and-2-bit-characters/description)
23# Intuition4My first thoughts involved using the length of the array. If it was odd, then I could say the array ended with a one-bit character.
5But I quickly realized the flaw in this plan: I was assuming all elements in the array, prior to the last element, were all two-bit characters. Simply put, if all elements in the array can be sequentially grouped (or paired) into two-bit characters, this approach would work. But if there were some standalone 0s sprinkled in the midst of these pairings, then the solution would fail.
-
Find Most Frequent Vowel and Consona...
Find Most Frequent Vowel and Consonant - LeetCode - Day 9 1[Question](https://leetcode.com/problems/find-most-frequent-vowel-and-consonant/description)
23# Intuition4I'm thinking: convert the string to an array, iterate through the array, and count the frequency of each letter.
5 -
Final Value of Variable After Perfor...
Final Value of Variable After Performing Operations - LeetCode - Day 12 1[Question](https://leetcode.com/problems/final-value-of-variable-after-performing-operations/description)
23# Intuition4Simply iterate through the string array and increase or decrease a set initial value depending on the string element.
5 -
Count Operations to Obtain Zero - Le...
Count Operations to Obtain Zero - LeetCode - Day 13 1[Question](https://leetcode.com/problems/count-operations-to-obtain-zero/description)
23# Intuition4My initial thoughts simply involved translating what was required into code: check both numbers and keep subtracting one from the other till one of the numbers get to zero.
5 -
Two Sum - LeetCode - Day 14
Two Sum - LeetCode - Day 14 1[Question](https://leetcode.com/problems/two-sum/description)
23# Intuition4For every number in the array, I would store the exact number to add to it to give the target number. How I store the needed remainder is very important as that determines the efficiency of the solution.
5
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.



