Skip to main content

All Questions

Filter by
Sorted by
Tagged with
1 vote
1 answer
81 views

Advent of Code Day 8

The task A file similar to the following is provided. ...
francesco's user avatar
2 votes
2 answers
164 views

Finding minimum steps required to traverse from source to terminal

Hello everyone this is my first post here so please do critique my post if there's anything. I have made a program intended to pass a programming challenge on open.kattis.com, here. It should do as ...
ma22om's user avatar
  • 23
3 votes
1 answer
169 views

Ruby simple interactive interpreter

This is a solution to this problem: https://www.codewars.com/kata/53005a7b26d12be55c000243/train/ruby The task is to make a simple interpreter that will take expressions and calculate the results. I'...
reggaeguitar's user avatar
3 votes
1 answer
591 views

Mars Rover challenge in Ruby

I have written a simplified version of the Mars Rover challenge in Ruby. Please review it for best coding practices. A rover’s position and location is represented by a combination of x and y co-...
Kathy Toufighi's user avatar
7 votes
2 answers
892 views

Calculate Hamming distance between DNA sequences in Ruby

I am requesting a review for my solution to this problem from exercism.io. I'm posting it here since there is not always input on solution submitted through exercism. The problem is as stated: ...
user9503053's user avatar
5 votes
1 answer
1k views

ROT13 cipher challenge (HackerRank)

I just started learning Ruby and thought that this relatively simple HackerRank challenge would be a good opportunity to try to write clean, tested and documented code without getting bogged down in ...
Phrancis's user avatar
  • 20.4k
3 votes
0 answers
210 views

Codingame: Great Escape bot in Ruby - Follow-up

This is a follow-up to Codingame: Great Escape bot in Ruby. As mentioned there, my first reasonably sized Ruby project is a bot for CodinGame's Great Escape contest (here is a sample gameplay video). ...
Mangara's user avatar
  • 465
5 votes
2 answers
409 views

Codingame: Great Escape bot in Ruby

(EDIT: I incorporated a lot of the feedback from the answers, and posted a follow-up question here: Codingame: Great Escape bot in Ruby - Follow-up) I started working on some code challenges at ...
Mangara's user avatar
  • 465
6 votes
3 answers
2k views

CodeWars kata 'Sum Of Pairs'

I need help in optimizing my code for this challenge. I think my algorithm is fine and I pass all sample tests but get took longer than 12000ms to complete error for final one. I guess there are a ...
SrdjaNo1's user avatar
  • 161
4 votes
1 answer
137 views

Path Finder Maze

The goal of my code was to find all possible moves from each open position in the maze (@moves_hash), assign it a value for how many moves it would take to get to ...
kobetastic's user avatar
4 votes
1 answer
120 views

Brainf**k interpreter in Ruby

I wrote this interpreter for a code challenge. Can this be written any cleaner/smaller? Could I reduce the amount of nested conditional/loops? ...
Mirror318's user avatar
  • 205
2 votes
1 answer
371 views

Project Euler #1: multiples of 3 and 5 Ruby

Total newbie here and wouldn't mind learning from Rubyists to look at how I tried to solve this challenge. I started with 2 variables n which starts at 0 and total which is an array where I intend to ...
Fide's user avatar
  • 21
0 votes
1 answer
134 views

Project Euler - #5 smallest multiple (Ruby using a hash table)

Why will this code work for a smaller multiple like 10 but time out for anything over 13? Can this code be revised to work for larger numbers? (I have an alternate solution but wanted to see if this ...
yviedev's user avatar
5 votes
4 answers
721 views

Ruby solution to Project Euler Problem #4: Largest palindrome product

I've solved the Project Euler Problem #4, but I'd like some tips as to how to make this more efficient. I am a beginner to Ruby, so please be nice about the stupid stuffs (but still tell me about it). ...
Sakamoto Kazuma's user avatar
8 votes
1 answer
542 views

Calculating protein mass

This question is part of a series solving the Rosalind challenges. For the previous question in this series, see A sequence of mistakes. The repository with all my up-to-date solutions so far can be ...
Mast's user avatar
  • 13.4k

15 30 50 per page
1
2 3 4 5 6