Love丶FFC's Blog
给一个正整数,检查它的二进制表示是否具有交替位:即,两个相邻的位总是具有不同的值。
样例 1:
输入: 5
输出: True
解释:
5 的二进制表示为: 101
样例 2:
输入: 7
输出: False
解释:
7 的二进制表示为: 111.
样例 3:
输入: 11
输出: False
解释:
11 的二进制表示为: 1011.
样例 4:
输入: 10
输出: True
解释:
10 的二进制表示: 1010.
1.逐位比对即可。
package LintCode_Easy; public class _987 { public static void main(String[] args) { int n=5; String binary = Integer.toBinaryString(n); boolean judge = true; for(int i=0;i<binary.length()-1;i++) { if (binary.charAt(i)==binary.charAt(i+1)) { judge = false; break; } } System.out.println(judge); } }
public class Solution { public boolean hasAlternatingBits(int n) { String binary = Integer.toBinaryString(n); boolean judge = true; for(int i=0;i<binary.length()-1;i++) { if (binary.charAt(i)==binary.charAt(i+1)) { judge = false; break; } } return judge; } }
Jorcift
If the infant is able to suckle, encourage the mother to breastfeed more often levitra se vende sin receta
intuido
Not surprisingly, this very low soy food intake was not associated with urinary 2 16 values buy generic propecia ENBREL is a medicine that affects your immune
intuido
can viagra be taken daily My husband took furosemide for many years
ZakLit
piroxicam cap
Williamjotly
celebrex 200 mg coupon
AlanLit
elimite price
DarrylBox
otc elimite cream
JosephKip
zofran 8 mg pill
rYubBnHOD
The raw CT slices were reconstructed using VGStudio 2 real cialis no generic Working at common primary schools, a specially trained team used theatre scenes to portray children experiencing epileptic seizures before an audience of schoolchildren, parents and teachers
JackLit
[url=http://acticin.skin/]acticin over the counter[/url]
AlanLit
[url=http://tenormina.online/]atenolol generic[/url]
SueLit
[url=http://accurane.online/]roaccutane without a prescription[/url]
ZakLit
[url=https://erectafil.foundation/]buy erectafil 20[/url]
DarrylBox
[url=https://phenergan.trade/]phenergan 25 mg otc[/url]
CurtisHed
[url=http://neurontin.foundation/]gabapentin 300mg[/url]
AlanLit
[url=http://tamoxifen.foundation/]buy nolvadex without prescription[/url]
JosephKip
[url=https://trimox.party/]amoxicillin 500mg no rx[/url]
JackLit
[url=http://propecia.africa/]finasteride tablets[/url]
AlanLit
[url=http://erectafil.gives/]erectafil 40[/url]
JosephKip
[url=https://stromectol.party/]price of ivermectin[/url]
JoeLit
[url=https://pharmacyonline.science/]canadian pharmacy mall[/url]
SamLit
[url=http://triamterene.charity/]triamterene/hctz 37.5[/url]
Davidevelf
[url=http://metformin.party/]metformin 300 mg daily[/url]
DarrylBox
[url=http://tretinon.online/]tretinoin 50 mg[/url]
SamuelEcors
[url=http://duloxetine.foundation/]cymbalta price 60 mg[/url]
Davidevelf
[url=https://azithromycin.solutions/]can i purchase azithromycin over the counter[/url]
EyeLit
[url=http://metformin.party/]metformin online purchase[/url]
Richardatone
cymbalta prices
Elwoodexcix
lipitor generic brand name
IvyLit
can i buy baclofen over the counter
AlanLit
how to buy cialis online usa
AshLit
zestoretic price
JackLit
baclofen pills
Elwoodexcix
buy atenolol 100mg
Elwoodexcix
levaquin prices
IvyLit
cymbalta 30 mg pill
Davidevelf
levaquin cipro
Elwoodexcix
lipitor 10mg price in india
DavisIgnip
tamoxifen canada price
IvyLit
atarax 25 mg tablets
DarrylBox
atarax 50 mg tablet
Elwoodexcix
dexamethasone uk buy
IvyLit
atarax generic otc
AlanLit
cheap baclofen uk
Michaelsmopy
atenolol 50 tablet
Elwoodexcix
generic for tenormin
DarrylBox
canadian pharmacy world coupon
JosephKip
prazosin for sleep
Richardatone
generic metformin rx online
SueLit
buy baclofen india
Richardatone
generic for levaquin
SamLit
triamterene 25 mg
Elwoodexcix
atarax prescription
JosephKip
150 mg atarax
AshLit
sildenafil canada otc
Michaelsmopy
cialis offer
SamuelEcors
buy atarax tablets uk
ZakLit
robaxin without a prescription
IvyLit
tadalista soft 40
Elwoodexcix
prazosin 1mg
JosephKip
prazosin erectile dysfunction
DavisIgnip
top 10 pharmacy websites
SamLit
tamoxifen 2019
EyeLit
phenergan 10mg tab
Richardatone
cymbalta 60 mg capsule
SamLit
phenergan buy online
SueLit
nolvadex online india
SamLit
nolvadex buying
SueLit
medication robaxin 500
ZakLit
phenergan 10mg tab
SueLit
buy dexamethasone online
AshLit
medicine tetracycline 500mg
IvyLit
tamoxifen 20 mg uk
JackLit
lipitor price singapore
EyeLit
prazosin 5 mg price
Richardatone
where to buy nolvadex in south africa
Davidevelf
lipitor prices compare
AlanLit
atarax 30 mg
DarrylBox
cymbalta 120
IvyLit
prednisolone 5mg tablets for sale
DarrylBox
prazosin coupon
ZakLit
baclofen prescription
DarrylBox
buy baclofen australia
AlanLit
prazosin 1 mg capsules
SueLit
atenolol online
Williamjotly
prazosin capsules
DavisIgnip
atenolol 12.5mg daily
SueLit
triamterene for sale
AshLit
buspar pill
JackLit
best rogue online pharmacy
SamuelEcors
robaxin 750 mg tabs
Elwoodexcix
purchase metformin online
JoeLit
robaxin 750 tabs
JosephKip
levaquin medication
IvyLit
triamterene cost
Elwoodexcix
zithromax 1g
Elwoodexcix
generic for levaquin
Elwoodexcix
atarax tablets
SamuelEcors
cymbalta 60 mg tablets
SueLit
zithromax cost in mexico
Michaelsmopy
otc diflucan pills
DavisIgnip
suhagra 100mg price in india
Michaelsmopy
buy deltasone
DarrylBox
plaquenil 75 mg
Elwoodexcix
pharmacy online australia free shipping
IvyLit
synthroid best price
MaryLit
flomax price
IvyLit
albuterol brand name
Michaelsmopy
prednisone without a rx
IvyLit
strattera cap 18mg
ZakLit
can you buy prednisone online
DarrylBox
albuterol 90 mg
DarrylBox
generic lyrica 2018
JackLit
buy lisinopril online usa
ZakLit
buy synthroid without a prescription
AlanLit
diclofenac cost
Michaelsmopy
diclofenac brand
Michaelsmopy
clopidogrel 70 mg
Michaelsmopy
zanaflex 5.2
MaryLit
where can i buy flomax over the counter
DavisIgnip
finpecia online india
IvyLit
generic propecia for cheap without precscription
DavisIgnip
synthroid brand name cost
SueLit
amoxicillin no rx
Elwoodexcix
canada cloud pharmacy
JackLit
reliable canadian pharmacy
Michaelsmopy
20 mg lisinopril tablets
JoeLit
generic synthroid medication
SamuelEcors
hydroxychloroquine sulfate generic
DavisIgnip
accutane buy india
Elwoodexcix
where to buy diflucan
JackLit
generic strattera usa
Williamjotly
cheap deltasone
Richardatone
buy lyrica online from canada
SamLit
can i buy lisinopril over the counter
AlanLit
how to buy lisinopril online
JosephKip
diflucan medicine online
SamuelEcors
plavix clopidogrel
Elwoodexcix
can you buy celebrex over the counter in australia
SamLit
suhagra 100mg online india
AshLit
retino gel
Davidevelf
buy cephalexin 500mg online uk
JoeLit
hydroxychloroquine 0.5 mg
EyeLit
clopidogrel 75 mg coupon
DarrylBox
generic strattera prices
SamuelEcors
retino cream
JoeLit
tizanidine 4mg tab cost
JosephKip
prednisone 5443
Elwoodexcix
lisinopril for sale
Davidevelf
buy cheap synthroid
Elwoodexcix
buy lisinopril 40 mg online
Michaelsmopy
prednisone 10mg prices
Elwoodexcix
tizanidine online without prescription
MaryLit
accutane 40 mg cost
JosephKip
bactrim purchase
Williamjotly
trimox 500 mg price