Is there a list of questions or puzzles in Ruby File Parsing

I came across this file syntax analysis software today and found it quite interesting. I also went for an interview about 6 months ago, where I was also provided with a txt file that needs to be analyzed with logic to get the desired results. I want to find more such problems.

What are some good resources for questions or puzzles such as a ruby ​​interview?

+4
source share
2 answers

Hm. I don’t know which one is specifically aimed at parsing files. But here are some tips:

  • Ruby Kickstart is a project I'm currently working on to teach Ruby. One aspect is the series of problems associated with test suites to verify that you did them correctly. You can download the code and try your hand at them. Once you have the code, run rake 1:1 to run the test for session1, problem1.

  • Ruby Koans is a series of tests that aims to learn how Ruby works. I really enjoyed going through this stuff. There is some kind of Zen that you fall into, almost the rhythm of solving and running tests (if you already know Ruby).

  • Meta Koans is also a series of tests proposed by Ruby Quiz , the purpose of which is to use metaprogramming to write code like attr_accessor. I found this unexpectedly complicated.

  • Puzzle Node is a project from Ruby Mendicant University to challenge people. I tried several problems and did not feel that they were very ruby, they seemed to me more generalized in nature. The input formats made me suggest that they were taken from other sources.

  • Ruby Warrior is an AI programming challenge from Ryan Bates ( Railscasts ). This is much more abstract than other things here, you can think of it as "write a robot that can move through mazes and fight / run away from opponents." Unfortunately, he doesn’t look like he did much with him, since he wrote it, so IDK if he is still good.


In addition, I find it erroneous to classify this as a “file parsing programming call”. The fact that input (a sequence of characters) happens to be given in a file does not create problems with reading / analyzing files. This is actually an algorithmic problem.

In addition, you can solve these problems in any language, including Ruby, which I made and which can be seen here .

+4
source

This question offers many options for programming puzzles:

https://softwareengineering.stackexchange.com/questions/756/programming-puzzles

If you are looking for something specifically designed for Ruby, I recommend RubyQuiz:

http://www.rubyquiz.com/

0
source

All Articles