This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Cube where | |
import Prelude | |
import Data.Tuple | |
import Data.Array (mapWithIndex, (!!)) | |
import Data.Maybe (Maybe(..), fromMaybe) | |
import Halogen as H | |
import Halogen.HTML as HH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### IN THIS_ISSUE SOME OF YOU MAYBE FACING (int not compatible) TYPE OF ISSUE. IN THAT CASE YOU SHOULD REPLACE <int> by <Integer>. AND HERE IS THE EASIEST SOLUTION. MUST UPVOTE IF U LIKE IT. | |
class Solution | |
{ | |
ArrayList<Integer> commonElements(int A[], int B[], int C[], int n1, int n2, int n3) | |
{ | |
ArrayList<Integer> arr=new ArrayList(); | |
int x=0,y=0,z=0; | |
int count=0; | |
while(x<n1 && y<n2 && z<n3) | |
{ |