What do you want to save?
Add Code snippet
New code examples
-
Python 2022-02-01 04:20:03
collecting candies codevita solution in python
T = int(input()) arr1 = [] for i in range(0, T): N = int(input()) arr = list(map(int,input().split())) arr.sort() count = arr[0] for i in range(1, len(arr)): count = count + arr[i] arr1.append(count) print(sum(arr1)) Add solution -
Other 2021-10-06 16:42:05
Given an array of integers, find the one that appears an odd number of times. There will always be only one integer that appears an odd number of times
function findOdd(A) { var countOccurencesOfInt = 0; for (let i = 0; i < A.length; i++) { var currentIterationInt = A[i]; for (let j = 0; j < A.length; j++) { if (currentIterationInt == A[j]) { coun... Add solution
Best helpers
Gabi Purcaru
+5
L. Samson
+5
Yoyo
+5
Skry
+5
Colocvial
+5
Sarah witte
+5
Leosar
+5
Tobiak777
+5
Tjd
+5