Skip to content
View PeculiarE's full-sized avatar

Block or report PeculiarE

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don't include any personal information such as legal names or email addresses. Markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. 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)
    2
    
                  
    3
    # Intuition
    4
    Spent 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
    
                  
  2. 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)
    2
    
                  
    3
    # Intuition
    4
    My 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.
    5
    But 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.
  3. 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)
    2
    
                  
    3
    # Intuition
    4
    I'm thinking: convert the string to an array, iterate through the array, and count the frequency of each letter.
    5
    
                  
  4. 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)
    2
    
                  
    3
    # Intuition
    4
    Simply iterate through the string array and increase or decrease a set initial value depending on the string element.
    5
    
                  
  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)
    2
    
                  
    3
    # Intuition
    4
    My 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
    
                  
  6. Two Sum - LeetCode - Day 14 Two Sum - LeetCode - Day 14
    1
    [Question](https://leetcode.com/problems/two-sum/description)
    2
    
                  
    3
    # Intuition
    4
    For 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