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
| public static int[] algoFunc(int[] numArray) { | |
| int totalMultiplication = 1; | |
| for(int num : numArray) { | |
| try{ | |
| totalMultiplication = totalMultiplication * num; | |
| }catch (ArithmeticException e){ | |
| totalMultiplication = 0; |
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
| int removeDuplicateElements(List array){ | |
| List newArray = []; | |
| for(var element in array) { | |
| if(!newArray.contains(element)) { | |
| newArray.add(element); | |
| } | |
| } |
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
| import 'package:flutter/cupertino.dart'; | |
| import 'package:flutter/material.dart'; | |
| import 'package:rubber/rubber.dart'; | |
| class MenuPage extends StatefulWidget { | |
| MenuPage({Key key}) : super(key: key); | |
| @override | |
| _MenuPageState createState() => _MenuPageState(); | |
| } |
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
| package com.nnkwachi.firebase_test; | |
| import android.graphics.Color; | |
| import android.graphics.drawable.GradientDrawable; | |
| import android.os.Bundle; | |
| import androidx.annotation.NonNull; | |
| import androidx.fragment.app.Fragment; | |
| import androidx.lifecycle.Observer; | |
| import androidx.lifecycle.ViewModelProvider; |