Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 254427

Use this tag when the code is a solution to a programming challenge. Always include a sufficient description of the problem to be solved - while a link to the challenge is welcome, the review request needs to be complete when the challenge site is unavailable.

4 votes
Accepted

Time limit error in 'The Minion Game' using python in Hacker Rank

The number of substrings with a fixed starting point is just the length of the remaining string. Also you might want to use the string module a bit + some literals instead of ord. Additionally members …
OnceAndFutureKing's user avatar
4 votes

Geektrust coding challenge: simulating a marketplace for loans

A few tips. One is to be aware of the anaemic domain antipattern (https://en.wikipedia.org/wiki/Anemic_domain_model). Classes with only attributes and no methods aren't really in the spirit of OO, so …
OnceAndFutureKing's user avatar
1 vote
Accepted

Extract and write fasta files using Biopython based on input from another file

SeqIO.parse streams through records one at a time, but it doesn't store them, which is why it doesn't work when you do it outside the loop. This is handy when you have giant files (saves a lot of memo …
OnceAndFutureKing's user avatar