From b27e1fe18ba7524f9a8a1bf0d9c064b9b959219e Mon Sep 17 00:00:00 2001 From: UditSoniJi <114995094+UditSoniJi@users.noreply.github.com> Date: Wed, 26 Oct 2022 19:51:14 +0530 Subject: [PATCH] Create Hackerrank problem (Network Stream) solutions.py --- ...rank problem (Network Stream) solutions.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Hackerrank problem (Network Stream) solutions.py diff --git a/Hackerrank problem (Network Stream) solutions.py b/Hackerrank problem (Network Stream) solutions.py new file mode 100644 index 00000000..acdad3b4 --- /dev/null +++ b/Hackerrank problem (Network Stream) solutions.py @@ -0,0 +1,19 @@ +def largeRepackagedPacket(arr): + twoP=[int(2**i) for i in range(31)] + x=0 + ans=0 + for i in arr: + i=i+x + for j in range(31): + if i