Skip to content

Magicianred/CodingExamples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

CodingExamples

This repository contains some example codes for some questions.

FairIndexSolution

Finds fair index count of two arrays. Fair index means an index that means giving same calculation result in both of arrays. 
Input: 
[4,-1,0,3] [-2,5,0,3]
Output: 
2 fair indexes --> 2 and 3 are fair indexes.
Because if fair index is 2, in first array 4 + (-1) = 0 + 3, in second array -2 + 5 = 0 + 3.
If fair index is 3, in first array 4 + (-1) + 0 = 3, in second array -2 + 5 + 0 = 3

About

Some Example Java Codes

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%