sorting tag

34 questions


1 answers
100 views
0
Python Alignment Questions

N=int(input()) #N=5N_list=list(map(int,input().split())) #N_list=[2,1,4,5,3]new_N_list=[]cnt=0for i in range(len(N_list)): if N_list.index(i+1)==N_list[i]: new_N_list.insert(i+1,i) cnt+=1print...

2 years ago

2 answers
83 views
0
I have a Python character alignment question. Sort by character length + alphabetical order.

Hello, a site says that the characters in the list should be printed in alphabetical order if the length is the same from the short one.N=int(input())N_list=['i', 'im', 'it', 'no', 'but', 'more', 'won...

2 years ago

1 answers
108 views
0
This is a language absolute value sorting question!!

#define _crt_secure_no_warnings#include<stdio.h>#include<stdlib.h>#include<math.h>void sortAbs(int* a, int* b, int* c);int main(){ int *a, *b, *c; int max, mid, min; printf (Enter 3 ...

2 years ago

1 answers
77 views
0
What kind of alignment is this?

[0, 6, 7, 9][6, 0, 7, 9][7, 0, 6, 9][9, 0, 6, 7][9, 6, 0, 7][9, 7, 0, 6][9, 7, 6, 0]I'm asking this question because I can't find what kind of arrangement it is.This is the Python question for the fir...

2 years ago
« - 4 -

© 2024 OneMinuteCode. All rights reserved.