Sunday, June 14, 2026
Latest:
  • In German, verb sein (to be) Konjunktion
  • 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?
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

How to run a spring boot application from command line?

December 4, 2019 beroza

Write a Program to Find Plus One of an Array of Digits

January 28, 2023 beroza

error: variable might not have been initialized Java

November 14, 2019 beroza

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

October 25, 2019 beroza

1Mbps connection but download speed is showing 100KBps, why?

December 20, 2020 beroza

What is ReactJS? Why we should use ReactJS?

August 1, 2019 beroza

Write a Program to Make Goat Latin

December 31, 2022 beroza

Write a program to check if all characters have equal number of occurrences

June 9, 2022 beroza

Write a Program to Find Min Max Game

May 17, 2023 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 © 2026 Upokary. All rights reserved.