Skip to content

Instantly share code, notes, and snippets.

View abhi2694's full-sized avatar

Abhinav Kumar abhi2694

View GitHub Profile
//Ques : Find maximum value of Sum( i*arr[i]) with only rotations on given array allowed
// C++ program to find max value of i*arr[i]
#include <iostream>
using namespace std;
// Returns max possible value of i*arr[i]
int maxSum(int arr[], int n)
{
// Find array sum and i*arr[i] with no rotation
<!doctype html>
<html class="no-js" lang="zxx">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Charifit</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
@abhi2694
abhi2694 / ind.html
Created August 18, 2018 18:08
index.html
<html lang="en">
<head>
<title> Bootstrap Example </title>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script>
<!doctype html>
<html>
<head>
<style type="text/css">
#first {background-image:url(wall11.png);
font-weight : bold;
font-style:italic;
color:white;
background-color:black;