Category: DIY & Household Repairs
Practical DIY repair guides and household fixes to help you mend electronics, tools, wiring, and everyday home items safely.

Google Interview 686. Repeated String Match
Given two strings a and b, return the minimum number of times you should repeat string a so that string b becomes a subscring of sring a.If b cannot be a substring of a after repeating it, return -1.

Google 844. Backspace String Compare
Given two strings s and t, return True if they are equal. ‘#’ means backspace. Solution 1: use a list to implement a stack. append adds an item and pop removes it.
![Two Sum Solution [LeetCode 1]](https://www.ionhowto.com/wp-content/uploads/2021/07/Two-Sum-Solution-LeetCode-1-363x188.png)
Two Sum Solution [LeetCode 1]
Given an array of integers nums and a target integer. Return the indexes (not values) of the 2 numbers that add up to the target value. One solution and one element can’t be used twice.

LeetCode 482 License Key Formatting Solution
LeetCode 482 Solution 32 ms in Python 3 You are given a license key represented by the string s that contains only alphanumeric characters and dashes. You are also given an integer k.

Google Leetcode 929 Unique Email Addresses
This solution uses the Slice in Python to slice the string as needed and a List to store unique emails found. One major trick is to use email[i:] and not just email[i]

How to reverse a string in Python 3
Write [::-1] to do slicing in Python starting at first character, until last, step by 1 in reverse (-1). It’s a pretty nice way to impress your imaginary friends.
How to reverse integer in Python 3
In Python 3 int type is the same as long so there is no need to check for int overflow. In other cases you will have to check for integer max value and min value to avoid a stack overflow.

Find the missing number in an array
Computer science job interview question:Find the missing number in the series.Write a program to calculate the missing number in the series of integers.


