Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Get 5 most unique combinations of elements in a 2D list
Post: Get 5 most unique combinations of elements in a 2D...

Hi, I have a problem with this particular question. I will have randomly generated 2D lists e.g.: list=[[2],[0,3],[0,1],[1,2,4,5],[1,6,10],[],[7,8],[],[],[8],[9]] and each index of the element in this...
wanttolearn Homework 1 2,342 Sep-24-2020, 02:18 PM
    Thread: Stein's GCD according to given pseudo code
Post: RE: Stein's GCD according to given pseudo code

My thought process for using while loops was that if either x or y was even, I would want to keep dividing it by 2 till the point that it would be an odd number. I changed my code to using if and elif...
wanttolearn Homework 2 2,027 Aug-27-2020, 07:58 PM
    Thread: Stein's GCD according to given pseudo code
Post: Stein's GCD according to given pseudo code

Hi, I have an assignment where I was given a pseudo code based off of Stein's algorithm to get GCD. The pseudo code provided was: k := 0 while x and y are both even x := x / 2 y := y / 2 k := k + 1 wh...
wanttolearn Homework 2 2,027 Aug-27-2020, 06:57 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020