• Feed
  • Discussions
frequency array

frequency array

#frequency-array
0 followers·1 articles

frequency array

#frequency-array·0 followers·1 articles
frequency array
Anni Huang
Anni Huang
huanganni.hashnode.dev·Jul 12, 2025
Jul 12, 2025

LeetCode 2006 Count Number of Pairs With Absolute Difference K - From brute force O(n²) to optimal O(n) using frequency array (Easy, Java, O(n))

Problem Description LeetCode 2006 Count Number of Pairs With Absolute Difference K Given a 0-indexed integer array nums, return true if it can be made strictly increasing after removing exactly one element, or false otherwise. If the array is already...

LeetCode 2006 Count Number of Pairs With Absolute Difference K - From brute force O(n²) to optimal O(n) using frequency array (Easy, Java, O(n))
Discuss·1 read
frequency array

Changelog

New steps component and improved accessibility on Hashnode's blog and docs product.

New steps component and improved accessibility on Hashnode's blog and docs product.

Nov 05, 2024·
new

Trending Articles

How Diamante’s DPoS Differs from L1 Chains.

Patience Uyire·33 reads

Beyond Speculation: The Real-World Utility of AEON

Prochino·22 reads

From Community to Governance: AEON’s 2030 Roadmap

Prochino·13 reads

Top commenters this week

Ariska Hidayat
Ariska Hidayat
Buy Old Gmail Accounts
Buy Old Gmail Accounts
Arjun Pandit
Arjun Pandit
Jenny Williams
Jenny Williams
Sonu Goswami
Sonu Goswami

Writing Challenges

#2Articles1Week Challenge

Become better at technical writing; accept Hashnode's writing challenge for four weeks.

#2Articles1Week Challenge
#WomenWhoTech

Share your story, achievements, or experiences as a woman, non-binary folk in tech or as a #WomenWhoTech ally!

#WomenWhoTech
Self Starter

Publish your first article on Hashnode and become a self starter!

Self Starter
Serial Blogger

Publish an article every day for 7 days and earn a cool serial blogger badge!

Serial Blogger
Talk of the town

Write a story that drives amazing engagement on Hashnode and become the talk of the town!

Talk of the town
Word Warrior

Write an in-depth article on your Hashnode blog that's more than 2000 words and become a word warrior!

Word Warrior