Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question 11 added #11

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions 11-integer-to-english-words.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Integer to English Words

Given a non-negative integer `num`, convert it to its English words representation.
3 changes: 3 additions & 0 deletions 12-shortest-palindrome.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Shortest Palindrome

Given a string `s`, convert it into a palindrome by adding characters only at the front of the string. Return the shortest palindrome that can be formed by this transformation.
7 changes: 7 additions & 0 deletions 13-create-maximum-number.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
## Create Maximum Number

You are given two integer arrays `nums1` and `nums2` of lengths `m` and `n` respectively. These arrays represent the digits of two numbers. You are also given an integer `k`.

Your task is to create the maximum number of length `k` (where `k ≤ m + n`) by selecting digits from the two arrays. The relative order of the digits from the same array must be preserved.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's inside a code block it's better to use <= to make it easier to type


Return an array of the `k` digits representing the maximum number.
5 changes: 5 additions & 0 deletions 14-self-crossing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Self Crossing

You are given an array of integers `distance`. You start at the point (0, 0) on an X-Y plane, and you move `distance[0]` meters to the north, then `distance[1]` meters to the west, `distance[2]` meters to the south, `distance[3]` meters to the east, and so on. After each move, your direction changes counter-clockwise.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

xy-plane


Return `true` if your path crosses itself, or `false` if it does not.
3 changes: 3 additions & 0 deletions 15-number-of-digit-one.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Number of Digit One

Given an integer `n`, count the total number of digit `1` appearing in all non-negative integers less than or equal to `n`.
5 changes: 5 additions & 0 deletions 16-first-missing-positive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## First Missing Positive

Given an unsorted integer array `nums`, return the smallest positive integer that is not present in `nums`.

You must implement an algorithm that runs in O(n) time and uses O(1) auxiliary space.
5 changes: 5 additions & 0 deletions 17-median-of-two-sorted-arrays.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Median of Two Sorted Arrays

Given two sorted arrays `nums1` and `nums2` of size `m` and `n` respectively, return the median of the two sorted arrays.

The overall run time complexity should be O(log(m + n)).
5 changes: 5 additions & 0 deletions 18-word-search-II.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Word Search II

Given an `m x n` board of characters and a list of strings `words`, return all words that can be found on the board.

Each word must be constructed from letters of sequentially adjacent cells, where adjacent cells are horizontally or vertically neighboring. The same letter cell may not be used more than once in a word.
5 changes: 5 additions & 0 deletions 19-find-the-closest-palindrome.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Find the Closest Palindrome

Given a string `n` representing an integer, return the closest integer (not including itself), which is a palindrome. If there is a tie, return the smaller one.

The closest is defined as the absolute difference minimized between two integers.
3 changes: 3 additions & 0 deletions 20-alien-dictionary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Alien Dictionary

There is a new alien language that uses the Latin alphabet. However, the order among letters is unknown. You receive a list of non-empty words from the dictionary, where words are sorted lexicographically according to the rules of this new language. Derive the order of letters in this language.