Fahad PathanSum of the differences of all pairs in an arrayYou are given an array of integers. You have to tell the sum of the differences of all the pairs.Jun 24, 2023Jun 24, 2023
Fahad PathanChoose r items from n itemsYou have given n items and have to choose r items from them. Now you have to print the number of ways you can choose.Jun 24, 2023Jun 24, 2023
Fahad PathanSkip some digits and print the nth natural numberCan you tell the 109th number of a 7 based number system?Apr 7, 20231Apr 7, 20231