[x] a. How many smart contacts does my user have?
[x] b. How many people do they speak to on average?
[x] c. What is the percentage of outgoing calls they make?
[x] d. How much time do they spend on phone calls?
checkWinner = ({ column, row, board }) => { | |
// ROW CHECK | |
for (var i = 0; i < 4; i++) { | |
if (column - 3 + i >= 0 && column + i < 7) { | |
if (this.checkLine( | |
board[column - 3 + i][row], | |
board[column - 2 + i][row], | |
board[column - 1 + i][row], | |
board[column - 0 + i][row], | |
)) { |
import numpy as np | |
# Iterative solution | |
# Jacobi method | |
def jacobi(A, b, x0, k): | |
# A = D + L + U | |
# D is matrix with diagonal elements | |
# L is lower triangular matrix | |
# U is upper triangular matrix | |
# |
//Created by Dipansh Khandelwal | |
// Github @DipanshKhandelwal | |
import 'dart:math'; | |
abstract class Shape { | |
List<double> sides; | |
double perimeter; | |
Shape(this.sides) { |