Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Problem with "Number List" problem on HackerRank
Post: RE: Problem with "Number List" problem on HackerRa...

(Apr-09-2022, 07:15 AM)Gribouillis Wrote: I think the problem in the algorithm is that if a value val is the maximum of a subarray and this value is reached more than once in the subarray, your algo...
Pnerd General Coding Help 5 2,087 Apr-12-2022, 12:25 AM
    Thread: Problem with "Number List" problem on HackerRank
Post: RE: Number List problem from HackerRank

Duplicate post deleted
Pnerd General Coding Help 5 2,087 Apr-09-2022, 12:40 AM
    Thread: Problem with "Number List" problem on HackerRank
Post: Problem with "Number List" problem on HackerRank

I'm trying to solve the Number List problem from HackerRank Here's what I did at first, but I was getting the error Error:time limit exceeded: def solve(a, k): N = len(a) # s_max contains th...
Pnerd General Coding Help 5 2,087 Apr-09-2022, 12:25 AM
    Thread: What are some good books for learning NumPy and Pandas?
Post: What are some good books for learning NumPy and Pa...

What are some good books for learning NumPy and Pandas after learning the basics of Python? And which one should I start learning first – NumPy or Pandas?
Pnerd General Coding Help 1 913 Feb-13-2022, 01:02 PM
    Thread: HackerRank Problem: Code works on VS Code but not on the HackerRank site
Post: RE: HackerRank Problem: Code works on VS Code but ...

(Feb-28-2021, 06:22 PM)ndc85430 Wrote: Looks like they're using Python 2.x, as input used to do the same as eval, basically. Is there the option of using 3.x? If not, you'll need to use raw_input in...
Pnerd General Coding Help 3 2,636 Feb-28-2021, 07:12 PM
    Thread: HackerRank Problem: Code works on VS Code but not on the HackerRank site
Post: RE: HackerRank Problem: Code works on VS Code but ...

[How can I delete this post?]
Pnerd General Coding Help 3 2,636 Feb-28-2021, 07:11 PM
    Thread: HackerRank Problem: Code works on VS Code but not on the HackerRank site
Post: HackerRank Problem: Code works on VS Code but not ...

Hi, I'm trying to solve this HackerRank problem: https://www.hackerrank.com/challenges/py...dd/problem This is my code: countries = set() n = int(input()) for i in range(n): countries.add(input(...
Pnerd General Coding Help 3 2,636 Feb-28-2021, 06:12 PM

User Panel Messages

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