🔍

# leetcode

LeetCode Notes: Add Digits

LeetCode problem solving notes. Given an integer num, repeatedly add all its digits until the result has only one digit, and return it.

LeetCode Notes: Can Place Flowers

LeetCode problem solving notes. You have a long flowerbed in which some of the plots are planted, and some are not. However, flowers cannot be planted in adjacent plots.

LeetCode Notes: Combine Two Tables

LeetCode problem solving notes. Write a SQL query for a report that provides the following information for each person in the Person table, regardless if there is an address for each of those people.

LeetCode Notes: Contains Duplicate II

LeetCode problem solving notes. Given an integer array nums and an integer k, return true if there are two distinct indices i and j in the array such that nums[i] == nums[j] and abs(i - j) <= k.

LeetCode Notes: Counting Bits

LeetCode problem solving notes. Given a non-empty array of integers nums, every element appears twice except for one. Find that single one.

LeetCode Notes: Excel Sheet Column Number

LeetCode problem solving notes. Given a string columnTitle that represents the column title as appear in an Excel sheet, return its corresponding column number.