Back to Browse

SUM OF THREE VALUES | CSES PROBLEMSET SOLUTION | PROBLEM 21

472 views
Feb 25, 2024
9:38

You are given an array of n integers, and your task is to find three values (at distinct positions) whose sum is x Print three integers: the positions of the values. If there are several solutions, you may print any of them. If there are no solutions, print IMPOSSIBLE. _________________________________________________________________ 🧾 Problem Link: https://cses.fi/problemset/task/1641 __________________________________________________________________ 👩‍💻 Code Link: https://github.com/Code-Disk/Sorting-and-Searching/blob/main/Sum_of_Three_Values.cpp __________________________________________________________________ 📖 Chapters: 0:00 Introduction 0:52 Intuition 2:24 Example 5:12 Code __________________________________________________________________ 🔍 Sum of two values : https://youtu.be/Lzl9KkOgJXg __________________________________________________________________ 🆘 Sorting and Searching Playlist : https://www.youtube.com/playlist?list=PLBrSeU9AeANbIEzG9Kk-lcyL_yiByfJa8 __________________________________________________________________ 👨‍🏫 Introductory Problems Playlist : https://www.youtube.com/playlist?list=PLBrSeU9AeANZNTKWCKWZ6Upz7Ow9ilizp __________________________________________________________________

Download

0 formats

No download links available.

SUM OF THREE VALUES | CSES PROBLEMSET SOLUTION | PROBLEM 21 | NatokHD