- 博客(7)
- 收藏
- 关注
原创 CLRS_BubbleSort_java_20200301
BubbleSortpackage algorithm;public class Sort { // main public static void main(String[] args) { double[] un_sortedArray = randomArray(10,0,100); double[] sortedArray = bubbleSort(copyArray...
2020-03-01 14:21:59 176
原创 BNDS_ALEVEL_CS_20200305
Question:rows = int(input())for i in range(rows): for j in range(rows - 1 - i): print(" ",end='') print('a',end='') if i > 0: for k in range(2 * i - 1): i...
2020-03-05 14:11:57 103
原创 BNDS_ALEVEL_CS_20200303
Question:# using for loopdef isPalindrome_for(string) -> bool: res = True for i in range(len(string)//2): if (string[i] != string[len(string) - 1 - i]): res = False ...
2020-03-03 12:02:12 162
原创 BNDS_ALEVEL_CS_20200228
Question:# using range functiondef listWithStep(startValue,endValue,step): for i in range(startValue + step,endValue + step,step): print(i) return 0# using while loopdef listWithS...
2020-02-28 11:58:38 210 1
原创 BNDS_ALEVEL_CS_20200220
Question 1:# generate random arrayimport randomdef randArr(length, min, max) -> list: randArr = [] for i in range(length): randArr.append(random.randint(min,max)) return ran...
2020-02-26 21:00:39 183
原创 BNDS_ALEVEL_CS_20200226
Question:Create a program to calculate an average by using an Array of floating point numbers and uses a for loop to go through the array.# input string from keyboardprint("PLEASE INPUT AN ARRAY, S...
2020-02-26 20:41:45 221
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人