GithubHelp home page GithubHelp logo

lovegame's Introduction

LoveGame

Enter Your names and the person's name you want to check your percentage with.

Algorithm :

Suppose U entered.
Salman
Katrina

Then it will use two strings

str1=Salman Loves Katrina
str2=Katrina Loves Salman

again
for str1

it would make a number
where it would see for occurrence of each character
in 
"Salman Loves Katrina"

242121111111
Salmnovektri

these are.occurencd of each alphabet (here name is case insensitive)
and if one character is used it is not counted again

242121111111

it would add
like
num[i]=num[i]+num[length-i]

it would give 353232

it would go repeatedly 
till one digit number is obtained

585
108
90
9
num1=9

and the same will be done to 
"Katrina Loves Salman"

141112211121
262224
684
108
90
9

num2=9
(co incidence)

now it will generate
num=10*num1+num2

i.e. 99%

However later if percentage is less than 88, it is normalised

  • Supported by javascript thanks for visiting

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.