Skip to content
#

algorithm-challenges

Here are 1,154 public repositories matching this topic...

My Solutions to Leetcode problems. All solutions support C++ language, some support Java and Python. Multiple solutions will be given by most problems. Enjoy:) 我的Leetcode解答。所有的问题都支持C++语言,一部分问题支持Java语言。近乎所有问题都会提供多个算法解决。大家加油!:)

  • Updated Jul 9, 2020
  • C++

hackerrank solutions github | hackerrank all solutions | hackerrank solutions for java | hackerrank video tutorial | hackerrank cracking the coding interview solutions | hackerrank data structures | hackerrank solutions algorithms | hackerrank challenge | hackerrank coding challenge | hackerrank algorithms solutions github| hackerrank problem solving | hackerrank programs solutions | JAVAAID |all hackerrank solutions | Coding Interview Preparation

  • Updated Sep 6, 2020
  • Java
ishi0301
ishi0301 commented Sep 12, 2020

🚀 Feature

Given an array that contains all elements occurring 3 times, but one occurs only once. Find that unique element.
Input : arr[] = {6, 2, 5, 2, 2, 6, 6}

Output : 5

Have you read the [Contributing Guidelines on Pull Requests]

Yes

Motivation

I want to solve this issue as a part of CH20.

Pitch

We can use bitwise AND to find the unique element in O(n)

Improve this page

Add a description, image, and links to the algorithm-challenges topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the algorithm-challenges topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.