Skip to content

ScoutMeto/CodeWars_Array.diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

CodeWars_Array.diff

Your goal in this kata is to implement a difference function, which subtracts one list from another and returns the result.

It should remove all values from list a, which are present in list b keeping their order. Kata.arrayDiff(new int[] {1, 2}, new int[] {1}) => new int[] {2} If a value is present in b, all of its occurrences must be removed from the other: Kata.arrayDiff(new int[] {1, 2, 2, 2, 3}, new int[] {2}) => new int[] {1, 3}

https://www.codewars.com/kata/523f5d21c841566fde000009/train/java?fbclid=IwAR3iCBsc48VqJAIcJEGRslk8s6hYgluFsyNsti2Mrlh4eDrEKbH-bWy2Nuw

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages