Problem
1346. Check If N and Its Double Exist
C#
1 | public class Solution { |
Submission Detail
- Accepted
- Runtime 105 ms, Beats 80.20%
- Memory 41 MB, Beats 14.60%
1346. Check If N and Its Double Exist
1 | public class Solution { |
He has written a slew of books.
we still have a slew of work to do on this project
delved into her handbag in search of a pen
the book delves into the latest research

tail fin
![]()
In the worst-case scenario, we would have to start the project all over again.
a clutter of motels and restaurants
There’s a lot of unnecessary clutter in the house.
Those who never have to move house become indiscriminate collectors of what can only be described as clutter.
The garage was cluttered with tools.
Try to avoid cluttering your desk with books and papers.
variants or carbo
a high-carbohydrate food, usually used in plural
![]()
the cork of a wine bottle
Decency, not fear of punishment, caused them to do the right thing.
![]()
needed some snazzy attire for the job interview
Proper attire is required at the restaurant.
The mayor is alleged to have accepted bribes.
You allege that she stole a large quantity of money. Do you have any proof?
The climate there is very harsh.
a harsh winter
We’ve had an extremely harsh winter.
![]()
he was enthusiastic about the prospects of the pitahaya, which is grown in Central America and in Asia, where it’s known as dragon fruit.
Native to Central and South America, where it’s called pitaya or pitahaya, the fruit traveled to Southeast Asia with the French more than a century ago.
speeding is only a minor infraction, but vehicular homicide is a serious felony
Antipodes, a term for Australia and New Zealand, roughly the area known as Australasia, based on their rough proximity to the antipodes of Britain
In the early days of the settlement of Australia, enterprising settlers unwisely introduced the European rabbit. This rabbit had no natural enemies in the Antipodes, so that it multiplied with that promiscuous abandon characteristic of rabbits.
He has an Antipodean accent.
1 | class Solution { |
1 | class Solution { |
They hugged each other before saying goodbye.
We hugged briefly, and then it was time to say goodbye.
![]()
She gave me a hug.
She complained that some disgusting man was leering at her.
Some female employees complained that they were being leered at by male employees.
the crowd hissed in disapproval
The audience hissed him off the stage.
My 12-year-old daughter is having a slumber party tonight.
They asked us to RSVP by this Friday.
make sure you keep your receipts so we can reimburse you for your expenses
the placement of unemployed workers
![]()
The tool punches holes in paper.
chronological tables of American history
chronological order
chronological age
an audacious mountain climber
She made an audacious decision to quit her job.
parry a blow
He parried the thrust of his opponent’s sword.
parry an embarrassing question
![]()
an ominous threat of war
He spoke in ominous tones.
ominous clouds
This edition supersedes the previous one.
Former stars were being superseded by younger actors.
An independent autopsy confirmed he was killed by the shot to his head.
an indefatigable laborer who can work from sunrise to sunset
Richard Dawkins is an atheist, he is well known for his criticism of creationism and intelligent design.
On Black Friday, some shoppers rush pell-mell into stores to find their favorite items at a discounted price.
papers strewn pell-mell on the desk
ran pell-mell for the door
snippets from the author’s newest novel
read them a snippet of his latest poem
![]()
There is one gotcha for protected access.
an experienced policeman whose partner is a rookie
a teacher who is lenient with students who have misbehaved
Many people felt that the punishment was too lenient.
by Marge Piercy
The people I love the best
jump into work head first
without dallying in the shallows
and swim off with sure strokes almost out of sight.
They seem to become natives of that element,
the black sleek heads of seals
bouncing like half-submerged balls.
I love people who harness themselves, an ox to a heavy cart,
who pull like water buffalo, with massive patience,
who strain in the mud and the muck to move things forward,
who do what has to be done, again and again.
I want to be with people who submerge
in the task, who go into the fields to harvest
and work in a row and pass the bags along,
who are not parlor generals and field deserters
but move in a common rhythm
when the food must come in or the fire be put out.
The work of the world is common as mud.
Botched, it smears the hands, crumbles to dust.
But the thing worth doing well done
has a shape that satisfies, clean and evident.
Greek amphoras for wine or oil,
Hopi vases that held corn, are put in museums
but you know they were made to be used.
The pitcher cries for water to carry
and a person for work that is real.
by Patricia A. Fleming
To learn while still a child
What this life is meant to be.
To know it goes beyond myself,
It’s so much more than me.
To overcome the tragedies,
To survive the hardest times.
To face those moments filled with pain,
And still, manage to be kind.
To fight for those who can’t themselves,
To always share my light.
With those who wander in the dark,
To love with all my might.
To still stand up with courage,
Though standing on my own.
To still get up and face each day,
Even when I feel alone.
To try to understand the ones
That no one cares to know.
And make them feel some value
When the world has let them go.
To be an anchor, strong and true,
That person loyal to the end.
To be a constant source of hope
To my family and my friends.
To live a life of decency,
To share my heart and soul.
To always say I’m sorry
When I’ve harmed both friend and foe.
To be proud of whom I’ve tried to be,
And this life I chose to live.
To make the most of every day
By giving all I have to give.
To me, that’s what this life should be,
To me, that’s what it’s for.
To take what God has given me
And make it so much more
To live a life that matters,
To be someone of great worth.
To love and be loved in return
And make my mark on Earth.
Patricia grew up in Trenton, New Jersey and was the middle child of three and had a middle-class upbringing. She worked as a psychiatric social worker for 36 years and after retiring, she began writing inspirational poems about life.
I’m practicing my
I-belong-here
no-twig-snap
no-leaf-rustle
no-branch-crack
see-all, know-all
float-like-fog
like-smoke
pine-needle-soft
forest walk.
No one will know I’m coming.
No one will know when I’m gone.
by Felienne Hermans and Marlies Aldewereld
Writing and programming are often seen as different. Writing a creative profession, programming a technical one. Below the surface however, there is one large similarity. Both writing and programming are, ultimately, the translation of a high-level idea into low level sentences or statements.
1 | from collections import Counter |
1 | class Solution: |
1 | import collections |