Problem This is a program to generate prime numbers for a given range. The sieve of Eratosthenes algorithm was implemented, […]

# Tag: time-limit-exceeded

## Hackerrank – “Sherlock and the Beast”

Problem I solved the problem but for two test cases, it’s giving me timeout error. It’s taking longer than 2 […]

## Knight’s tour code

Problem Another one for some late night snack. – Knight’s tour! Please provide your suggestions/flaws/optimization to this knight’s tour backtracking […]

## MaxCounters solution

Problem I am doing this Codility problem You are given N counters, initially set to 0, and you have two […]

## HackerRank: Climbing the Leaderboard

Problem Below is my solution to Climbing the Leaderboard on HackerRank: Alice is playing an arcade game and wants to […]

## A function to find all the primes between two numbers whose reverse is also a prime and doesn’t include palindrome, in JS

Problem I am trying to solve a challenge in which I have to write a function that takes in two […]

## Hackerrank: Arithmetic Expressions

Problem Problem: Arithmetic expressions Given a list of 2..10,000 integer numbers in a range of 1..100 place operators +, – […]

## Sums for list of ranges (CodeFights Basic Skills)

Problem I can solve this problem with a brute force naive solution, but need to optimize it for time. I’m […]

## Copying lists into columns of a table

Problem Edit: I found a potential solution. Changing all of the Dim as Long to Dim as Integer allows the […]

## Hacker Rank Climbing The Leaderboard

Problem This has been asked a couple of times but here is my implementation in C++. I have 11/12 solutions […]