Documentation
¶
Overview ¶
Your friend is typing his name into a keyboard. Sometimes, when typing a character c, the key might get long pressed, and the character will be typed 1 or more times.
You examine the typed characters of the keyboard. Return True if it is possible that it was your friends name, with some characters (possibly none) being long pressed.
A perfect number is a positive integer that is equal to the sum of its positive divisors, excluding the number itself. A divisor of an integer x is an integer that can divide x evenly.
Given an integer n, return true if n is a perfect number, otherwise return false.
Given an integer n, return true if it is a power of three. Otherwise, return false.
You are given the root of a binary tree where each node has a value 0 or 1. Each root-to-leaf path represents a binary number starting with the most significant bit.
For example, if the path is 0 -> 1 -> 1 -> 0 -> 1, then this could represent 01101 in binary, which is 13. For all leaves in the tree, consider the numbers represented by the path from the root to that leaf. Return the sum of these numbers.
The test cases are generated so that the answer fits in a 32-bits integer.
A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the same forward and backward. Alphanumeric characters include letters and numbers.
Given a string s, return true if it is a palindrome, or false otherwise.
Source Files
¶
- add_binary.go
- buddy_strings.go
- can_place_flowers.go
- check_double_exist.go
- excel_sheet_column_title.go
- find_pivot_index.go
- first_bad_version.go
- get_intersection_node.go
- length_of_last_word.go
- long_pressed_word.go
- longest_common_prefix.go
- make_arr_strictly_inc.go
- max_stack.go
- merge_sorted_arrays.go
- missing_ranges.go
- num_of_diff_integer_string.go
- perfect_number.go
- plus_one.go
- power_of_four.go
- power_of_three.go
- power_of_two.go
- rectangle_overlap.go
- remove_list_element.go
- roman_to_int.go
- search_insert_position.go
- segments_in_a_string.go
- set_mismatch.go
- str_str.go
- sum_root_to_leaf.go
- third_max.go
- two_sum_data_structure_design.go
- valid_boomerang.go
- valid_mountain_array.go
- valid_palindrome.go
- valid_palindrome_II.go
- valid_paranthesis.go
- valid_perfect_square.go
- valid_word_abbreviation.go
- valid_words_in_string.go
- x_of_kind_in_deck.go