This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:20.04 | |
ENV DEBIAN_FRONTEND=noninteractive | |
SHELL ["/bin/bash", "-c"] | |
LABEL ranchimall="ranchimallfze@gmail.com" | |
CMD { "echo", "Ranchi Mall" } | |
## for apt to be noninteractive | |
ENV DEBIAN_FRONTEND noninteractive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def sumNdifference(array): | |
j = 1 | |
array = sorted(array) | |
array = array[::-1] | |
while (true)): | |
diff = array[len(array)-1] | |
other = sum(array[j:]) | |
if array[0]-other > 0: | |
diff = array[0]-other | |
break |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int i,l; | |
int search(int ,int *,int); | |
int main(){ | |
int n,m; | |
printf("enter the size of array:"); | |
scanf("%d",&n); | |
int a[n]; | |
printf("enter the elements:\n"); | |
for(i=0;i<n;i++){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def flo_sorting(list): | |
length = len(list) | |
i = a = b = c = d = e = 0 | |
list2 = [] | |
newlist = [] | |
while i != length: | |
if list[i][-1] == ':': | |
e = list[i] |
NewerOlder