• Feed
  • Discussions
single number

single number

#single-number
0 followers·3 articles

single number

#single-number·0 followers·3 articles
single number
Adiam Ahmed
Adiam Ahmed
adiamvsleetcode.hashnode.dev·May 13, 2025
May 13, 2025

Single Number

Problem Link LeetCode Version Problem Statement Given a non-empty array of integers nums, every element appears twice except for one. Find that single one. You must implement a solution with a linear runtime complexity and use only constant extra s...

Single Number
Discuss·2 reads
leetcode-solution
Vineeth Chivukula
Vineeth Chivukula
vineethchivukula.hashnode.dev·Jun 29, 2024
Jun 29, 2024

Solving Single Number

To see the question, click here. Naive Approach To find the single element, we can first sort the array and then check for the single element. This approach works because each element appears twice except for one, and when the array is sorted, these ...

Discuss·15 reads
single number
Chetan Datta
Chetan Datta
chetan77.hashnode.dev·Dec 06, 2023
Dec 06, 2023

Arrays Easy - Part III (XOR)

268. Missing Number Problem Statement Given an array nums containing n distinct numbers in the range [0, n], return the only number in the range that is missing from the array. (link) Example 1: Input: nums = [3,0,1] Output: 2 Explanation: n = 3 sinc...

Arrays Easy - Part III (XOR)
Discuss·11 reads
Leetcode
max consecutive ones

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

The DePIN Revolution: Mapping the World and Earning Onchain with $WIFI.

Patience Uyire·80 reads

The Stablecoin Surge: How CryptoXpress Is Leading the Charge Toward Financial Liberation

Naomi Antia Benson·56 reads

CryptoXpress: Because Managing Crypto Shouldn't Feel Like Filing Taxes

Prochino·73 reads

Top commenters this week

Sumayya Irfan
Sumayya Irfan
Taji Abdullah
Taji Abdullah
Rishav
Rishav
Marketer lab
Marketer lab
Astha Sharma
Astha Sharma

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