Friday, December 5, 2025
Latest:
  • Wichtige wörter für B1 prüfung
  • What are the main differences between ApplicationContext and BeanFactory?
  • German B1 Word list
  • How does Lazy annotation work in Spring?
  • How Spring framework resolves circular dependencies?
Upokary

Upokary

Quality information

  • Health
  • Life
  • Fashion
  • Food
  • Code
  • English
  • বাংলা
Technology 

Find if the sum of two integers is equal to the given value

Published: February 10, 2022
   const verifySum = (arr, total) => {
       for(let i = 0; i < arr.length ; i++ ){
           for(let j = 0 ; j < arr.length; j++) {
               if (i === j) {
                   continue;
               }

               if(total === arr[i] + arr[j]) {
                   return true;
               }
           }
       }
       return false;
   }

   const input = [5, 7, 1, 2, 8, 4, 3];
   console.log(verifySum(input, 15));

You May Also Like

Uncaught Error: Invariant Violation: Element type is invalid: expected a string or a class/function but got: object

December 16, 2021 beroza

How JSX prevents cross site scripting attacks?

December 27, 2019 beroza
infoguard

What is VPN? How does VPN work? What are the benefits of VPN?

July 11, 2021 Sourav Paul

rest_cannot_create Sorry, you are not allowed to create posts as this user in WordPress REST API

July 2, 2019 beroza

Reverse the words in a sentence using JavaScript

February 11, 2022 beroza

Why we should use ‘use strict’ in JavaScript?

August 13, 2021 beroza

AWS IAM error : ‘Your authentication information is incorrect. Please try again’

October 25, 2019 beroza

Flask ImportError: No Module Named Flask in python script

July 12, 2020 beroza

How Jenkins X works with Kubernetes using PROW and Tekton?

May 13, 2020 beroza

Why Upokary?

Upokary.com is a useful application in everyday life. It provides very handy information regarding every aspect of life. Each and every tip of upokary.com is meant to make life better.

Upokary tools

  • Youtube thumbnail
  • Youtube video downloader

Useful Links

  • Handy code
  • Technology
  • People
  • Programming
  • Quote
  • Travel
  • WordPress
  • IELTS
  • Kids

Pages

  • Sitemap
  • Privacy policy
  • About us
  • Contact us

Support

For any kind of query or question please drop a message in the following email: upokary@gmail.com
Copyright © 2025 Upokary. All rights reserved.