Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
  Question Thread: Frog codility leap sort variant
Post: Frog codility leap sort variant

Frog codility leap sort variant input_str = input("Enter Frogs: ") # User types 5 1 3 4 2 <enter>. Do not type the zero. frog_list = [0] for number_str in input_str.split(): frog_list.app...
MoreMoney Homework 5 525 Mar-31-2024, 03:11 AM
    Thread: Sorting Steps
Post: RE: Sorting Steps

(Mar-29-2024, 10:55 PM)deanhystad Wrote: If the sorting really bothers you, think of the frogs as A, B, C, D and E. The frogs rest on lily pads a, b, c, d and e. The goal is to move each frog to t...
MoreMoney General Coding Help 19 987 Mar-30-2024, 03:15 PM
    Thread: Sorting Steps
Post: RE: Sorting Steps

(Mar-30-2024, 07:54 AM)Pedroski55 Wrote: Thanks for that! The old clock finally ticked, I remember vaguely having heard of this frog puzzle in school! Frog may only land on empty lilypad! Got it...
MoreMoney General Coding Help 19 987 Mar-30-2024, 03:10 PM
    Thread: Sorting Steps
Post: RE: Sorting Steps

(Mar-27-2024, 06:14 PM)deanhystad Wrote: @Pedroski55, the goal is not to sort the frogs. The goal is to move the frogs into sorted order using the fewest moves. There is also a restriction that a ...
MoreMoney General Coding Help 19 987 Mar-28-2024, 07:30 AM
    Thread: Coding Improvement
Post: RE: Coding Improvement

(Mar-26-2024, 05:58 PM)snippsat Wrote: (Mar-26-2024, 03:57 PM)MoreMoney Wrote: Thank you for your help, but i have question i just need 6 atm digit for my homework should i decrase the range for f...
MoreMoney Homework 6 765 Mar-27-2024, 01:03 AM
    Thread: Sorting Steps
Post: RE: Sorting Steps

(Mar-26-2024, 04:09 PM)deanhystad Wrote: While loop should be: while frog_list != sorted_list:Thank you, but it seems doesn't make any difference? Maybe there is more thing i should do? input_s...
MoreMoney General Coding Help 19 987 Mar-26-2024, 04:42 PM
    Thread: Coding Improvement
Post: RE: Coding Improvement

(Mar-24-2024, 11:49 PM)snippsat Wrote: (Mar-24-2024, 10:45 AM)MoreMoney Wrote: Thanks it's work but i'm open for improvement is it possible to increase the completion time even small amount? How t...
MoreMoney Homework 6 765 Mar-26-2024, 03:57 PM
    Thread: Sorting Steps
Post: RE: Sorting Steps

(Mar-26-2024, 03:24 PM)deanhystad Wrote: I think you can figure this one out. Thank you for your help, i trying to replace the name one by one like sorted_frogs, sorted_list, but they create infinit...
MoreMoney General Coding Help 19 987 Mar-26-2024, 03:40 PM
    Thread: Sorting Steps
Post: RE: Sorting Steps

(Mar-26-2024, 02:27 PM)deanhystad Wrote: I don't understand your question. Why would you not use the frog puzzle solution you already posted and use this: input_str = input("Enter Frogs: ") # User...
MoreMoney General Coding Help 19 987 Mar-26-2024, 03:22 PM
  Thumbs Up Thread: Sorting Steps
Post: Sorting Steps

I'm trying to make the output on the code input_str = input("Enter Frogs: ") # User types 5 1 3 4 2 <enter>. Do not type the zero. frog_list = [0] for number_str in input_str.split(): frog...
MoreMoney General Coding Help 19 987 Mar-26-2024, 02:16 PM
    Thread: Frog Puzzle Random To Custom
Post: RE: Frog Puzzle Random To Custom

(Mar-25-2024, 09:53 PM)deanhystad Wrote: Quote:I just want to make the input to custom number instead of randomized number ie i want my code to sort this [0,5,1,3,4,2] instead of randomized number, ...
MoreMoney General Coding Help 4 532 Mar-26-2024, 08:38 AM
    Thread: Coding Improvement
Post: RE: ATM PIN Coding Improvement

(Mar-21-2024, 09:33 PM)deanhystad Wrote: What is the problem you are trying to solve? If there are no restriction on PIN's other than they have 6 digits, you are already guessing the pin in the mos...
MoreMoney Homework 6 765 Mar-24-2024, 10:45 AM
  Question Thread: Frog Puzzle Random To Custom
Post: Frog Puzzle Random To Custom

I just want to make the input to custom number instead of randomized number ie i want my code to sort this [0,5,1,3,4,2] instead of randomized number, can anyone revise my whole code? Thank you so muc...
MoreMoney General Coding Help 4 532 Mar-23-2024, 10:39 AM
    Thread: Coding upgrade
Post: RE: Frog Jumping Coding Improvement

(Mar-22-2024, 04:16 PM)deanhystad Wrote: Look at str.split() This can be used to split a str like this: Output:0 10 7 1 6 4Int a list of str like this: Output:['0', '10', '7', '1', '6', '4']Then yo...
MoreMoney Homework 4 541 Mar-22-2024, 04:30 PM
    Thread: Coding upgrade
Post: RE: Frog Jumping Coding Improvement

(Mar-22-2024, 03:56 PM)deanhystad Wrote: You should post a description of what the program is supposed to do. This was missing from your previous post also. Is the goal to sort the frogs in decrea...
MoreMoney Homework 4 541 Mar-22-2024, 04:02 PM
  Question Thread: Coding upgrade
Post: Coding upgrade

minimize frog steps as possible, trying to minimize and efficient the frog step. The rule is given the last step 0 must be at most left, then big number to smaller number, its seems there is some inef...
MoreMoney Homework 4 541 Mar-22-2024, 02:36 PM
    Thread: Coding Improvement
Post: Coding Improvement

Trying to make completion time faster and stable, anyone have better code for that? Here is my try import time def find_pin(pin): start_time = time.time() pin_int = int(pin) for guess i...
MoreMoney Homework 6 765 Mar-21-2024, 11:12 AM

User Panel Messages

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