My English Words List - December - 2022

slew

slew

noun

He has written a slew of books.

we still have a slew of work to do on this project

delve

delve

verb

delved into her handbag in search of a pen

the book delves into the latest research

fin

fin

noun

Illustration of fish

tail fin

Caudal fin of a great white shark

Fin

scenario

scenario

noun

In the worst-case scenario, we would have to start the project all over again.

clutter

clutter

noun

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.

verb

The garage was cluttered with tools.

Try to avoid cluttering your desk with books and papers.

carb

carb

noun

  • variants or carbo

  • a high-carbohydrate food, usually used in plural

cork

cork

noun

Cork stoppers from wine bottles

the cork of a wine bottle

decency

decency

noun

Decency, not fear of punishment, caused them to do the right thing.

scaffold

scaffold

noun

Scaffolding for rehabilitation in Madrid

Scaffold (programming)

Scaffolding

attire

attire

noun

needed some snazzy attire for the job interview

Proper attire is required at the restaurant.

allege

allege

verb

The mayor is alleged to have accepted bribes.

You allege that she stole a large quantity of money. Do you have any proof?

harsh

harsh

adjective

The climate there is very harsh.

a harsh winter

We’ve had an extremely harsh winter.

pitaya

pitaya

noun

Longitudinal section of a ripe pitahaya

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.

Pitaya

infraction

infraction

noun

speeding is only a minor infraction, but vehicular homicide is a serious felony

antipode

antipode

noun

Antipodes, a term for Australia and New Zealand, roughly the area known as Australasia, based on their rough proximity to the antipodes of Britain

Antipodes Islands

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.

antipodean

antipodean

adjective or noun

He has an Antipodean accent.

LeetCode - Algorithms - 1507. Reformat Date

Problem

1507. Reformat Date

Dart

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
class Solution {
String reformatDate(String date) {
final DD = const {
"1st":"01", "2nd":"02", "3rd":"03", "4th":"04",
"5th":"05", "6th":"06", "7th":"07", "8th":"08",
"9th":"09", "10th":"10", "11th":"11", "12th":"12",
"13th":"13", "14th":"14", "15th":"15", "16th":"16",
"17th":"17", "18th":"18", "19th":"19", "20th":"20",
"21st":"21", "22nd":"22", "23rd":"23", "24th":"24",
"25th":"25", "26th":"26", "27th":"27", "28th":"28",
"29th":"29", "30th":"30", "31st":"31"};
final MM = const {"Jan":"01", "Feb":"02", "Mar":"03",
"Apr":"04", "May":"05", "Jun":"06", "Jul":"07", "Aug":"08",
"Sep":"09", "Oct":"10", "Nov":"11", "Dec":"12"};
List<String> list = date.split(" ");
String month = list[1];
String day = list[0];
String ymd = list[2] + "-" + (MM[month]??'MM') + "-" + (DD[day]??'00');
return ymd;
}
}

Submission Detail

  • Accepted
  • Runtime 498 ms, Beats 33.33%
  • Memory 140.2 MB, Beats 100%

Swift

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class Solution {
func reformatDate(_ date: String) -> String {
let month = ["Jan":"01", "Feb":"02", "Mar":"03",
"Apr":"04", "May":"05", "Jun":"06",
"Jul":"07", "Aug":"08", "Sep":"09",
"Oct":"10", "Nov":"11", "Dec":"12"]
let dayOfMonth = ["1st":"01", "2nd":"02", "3rd":"03", "4th":"04",
"5th":"05", "6th":"06", "7th":"07", "8th":"08",
"9th":"09", "10th":"10", "11th":"11", "12th":"12",
"13th":"13", "14th":"14", "15th":"15", "16th":"16",
"17th":"17", "18th":"18", "19th":"19", "20th":"20",
"21st":"21", "22nd":"22", "23rd":"23", "24th":"24",
"25th":"25", "26th":"26", "27th":"27", "28th":"28",
"29th":"29", "30th":"30", "31st":"31"]
var ymdList = date.components(separatedBy: " ")
var yyyy : String? = ymdList[2]
var mm : String? = month[ymdList[1]]
var dd : String? = dayOfMonth[ymdList[0]]
var ymd : String? = (yyyy ?? "") + "-" + (mm ?? "") + "-" + (dd ?? "")
return ymd ?? ""
}
}

Submission Detail

  • Accepted
  • Runtime 0 ms, Beats 100%
  • Memory 14.9 MB, Beats 50%

My English Words List - November - 2022

hug

hug

verb

They hugged each other before saying goodbye.

We hugged briefly, and then it was time to say goodbye.

noun

A hug after a basketball game in the United States

She gave me a hug.

Hug

leer

leer

verb

She complained that some disgusting man was leering at her.

Some female employees complained that they were being leered at by male employees.

hiss

hiss

verb

  • to make a long sharp sound like that of the speech sound \s\ or that made by an alarmed animal (as a snake or cat) usually as a sign of disapproval

the crowd hissed in disapproval

The audience hissed him off the stage.

slumber party

slumber party

noun

  • an overnight gathering especially of teenage girls usually at one of their homes

My 12-year-old daughter is having a slumber party tonight.

Sleepover

RSVP

RSVP

verb

  • to respond to an invitation

They asked us to RSVP by this Friday.

abbreviation

  • please reply

reimburse

reimburse

verb

make sure you keep your receipts so we can reimburse you for your expenses

placement

placement

noun

  • the assignment of a person to a suitable place (such as a job or a class in school)

the placement of unemployed workers

punch

punch

noun

Common handheld single-hole punch

  • a device or machine for cutting holes or notches (as in paper or cardboard)

Hole punch

verb

The tool punches holes in paper.

chronological

chronological

adjective

chronological tables of American history

chronological order

chronological age

audacious

audacious

adjective

  • very bold and daring

an audacious mountain climber

She made an audacious decision to quit her job.

parry

parry

verb

parry a blow

He parried the thrust of his opponent’s sword.

parry an embarrassing question

Illustration of the prime parry

Parry (fencing)

ominous

ominous

adjective

an ominous threat of war

He spoke in ominous tones.

ominous clouds

supersede

supersede

verb

This edition supersedes the previous one.

Former stars were being superseded by younger actors.

autopsy

autopsy

noun

  • called also necropsy

An independent autopsy confirmed he was killed by the shot to his head.

indefatigable

indefatigable

adjective

an indefatigable laborer who can work from sunrise to sunset

atheist

atheist

noun

  • a person who does not believe in the existence of a god or any gods

Richard Dawkins is an atheist, he is well known for his criticism of creationism and intelligent design.

pell-mell

pell-mell

adverb

  • in a confused and hurried way
  • in mingled confusion or disorder

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

snippet

snippet

noun

snippets from the author’s newest novel

read them a snippet of his latest poem

booger

booger

noun

  • a piece of dried nasal mucus

Mucus

goose bumps

goose bumps

plural noun

Goose-bumps on a human arm

  • a roughness of the skin produced by erection of its papillae especially from cold, fear, or a sudden feeling of excitement
  • called also goose pimples

Goose bumps

proctor

proctor

noun

  • a person who supervises students during an examination

gotcha

gotcha

noun

There is one gotcha for protected access.

rookie

rookie

noun

an experienced policeman whose partner is a rookie

lenient

lenient

adjective

a teacher who is lenient with students who have misbehaved

Many people felt that the punishment was too lenient.

To be of use

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.


What Life Should Be

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.

Programming is Writing is Programming

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.


LeetCode - Algorithms - 2347. Best Poker Hand

Problem

2347. Best Poker Hand

Python

Counter

1
2
3
4
5
6
7
8
9
10
11
12
13
from collections import Counter

class Solution:
def bestHand(self, ranks: List[int], suits: List[str]) -> str:
c = Counter(ranks).values()
if all(suits[0] == suit for suit in suits):
return "Flush"
elif max(c) > 2:
return "Three of a Kind"
elif max(c) == 2:
return "Pair"
else:
return "High Card"

Submission Detail

  • 98 / 98 test cases passed.
  • Runtime: 58 ms, faster than 42.46% of Python3 online submissions for Best Poker Hand.
  • Memory Usage: 13.8 MB, less than 97.47% of Python3 online submissions for Best Poker Hand.

Dictionary

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
class Solution:
def bestHand(self, ranks: List[int], suits: List[str]) -> str:
d = dict()
for rank in ranks:
if rank not in d:
d[rank] = 1
else:
d[rank] += 1
c = d.values()
if all(suits[0] == suit for suit in suits):
return "Flush"
elif max(c) > 2:
return "Three of a Kind"
elif max(c) == 2:
return "Pair"
else:
return "High Card"

Submission Detail

  • 98 / 98 test cases passed.
  • Runtime: 71 ms, faster than 7.61% of Python3 online submissions for Best Poker Hand.
  • Memory Usage: 13.9 MB, less than 68.49% of Python3 online submissions for Best Poker Hand.

LeetCode - Algorithms - 2418. Sort the People

Problem

2418. Sort the People

Python

1
2
3
4
5
6
7
8
9
10
11
12
import collections

class Solution:
def sortPeople(self, names: List[str], heights: List[int]) -> List[str]:
d = dict()
for i in range(len(names)):
d[heights[i]] = names[i]
od = collections.OrderedDict(sorted(d.items(), reverse=True))
result = []
for key in od:
result.append(od[key])
return result

Submission Detail

  • 68 / 68 test cases passed.
  • Runtime: 331 ms, faster than 15.16% of Python3 online submissions for Sort the People.
  • Memory Usage: 14.4 MB, less than 89.07% of Python3 online submissions for Sort the People.

LeetCode - Algorithms - 485. Max Consecutive Ones

Problem

485. Max Consecutive Ones

Python

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class Solution:
def findMaxConsecutiveOnes(self, nums: List[int]) -> int:
countArr = [0] * len(nums)
if nums[0] == 1:
countArr[0] = 1
else:
countArr[0] = 0
i = 1
while i < len(nums):
if nums[i] == 1:
if nums[i-1] == nums[i]:
countArr[i] = countArr[i-1] + 1
else:
countArr[i] = 1
else:
countArr[i] = 0
i += 1
return max(countArr)

Submission Detail

  • 42 / 42 test cases passed.
  • Runtime: 957 ms, faster than 14.08% of Python3 online submissions for Max Consecutive Ones.
  • Memory Usage: 14.6 MB, less than 6.75% of Python3 online submissions for Max Consecutive Ones.