Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

717. 1-bit and 2-bit Characters #23

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

Merged
zwfang merged 1 commit into master from 1-bit-and-2-bit-characters
Dec 29, 2018
Merged

Conversation

Copy link
Collaborator

@zwfang zwfang commented Dec 28, 2018

https://leetcode.com/problems/1-bit-and-2-bit-characters/

We have two special characters.
The first character can be represented by one bit 0.
The second character can be represented by two bits (10 or 11).

Now given a string represented by several bits.
Return whether the last character must be a one-bit character or not.
The given string will always end with a zero.

Note:
1 <= len(bits) <= 1000.
bits[i] is always 0 or 1.

@zwfang zwfang added array An array is stored such that the position of each element can be computed from its index Easy Coefficient of difficulty easy labels Dec 28, 2018
Copy link

codecov bot commented Dec 28, 2018
edited
Loading

Codecov Report

Merging #23 into master will increase coverage by 0.02%.
The diff coverage is 100%.

Impacted file tree graph

@@ Coverage Diff @@
## master #23 +/- ##
==========================================
+ Coverage 99.11% 99.12% +0.02% 
==========================================
 Files 63 64 +1 
 Lines 1115 1129 +14 
==========================================
+ Hits 1105 1119 +14 
 Misses 6 6 
 Partials 4 4
Impacted Files Coverage Δ
...rc/0717_1_bit_and_2_bit_characters/1bitand2bitc.go 100% <100%> (ø)

@zwfang zwfang merged commit 8385819 into master Dec 29, 2018
@zwfang zwfang deleted the 1-bit-and-2-bit-characters branch March 4, 2020 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
array An array is stored such that the position of each element can be computed from its index Easy Coefficient of difficulty easy
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /