Code Monkey home page Code Monkey logo

crosswords's Introduction

README

Requirements

Ruby (Version 3.1.4 and above) Rails (Version 7.1.3.2)

Installation

git clone https://github.com/pjavadi84/crosswords
cd crosswords
bundle install
rails db:create db:migrate
rails s

A Crossword Puzzle

This challenge should be solved using Ruby, but you can use another programming language if you prefer.

Remember

Showcase your computer science knowledge, coding skill, and attention to details

The most important thing is to have a completed, working, and correct implementation first

If possible reduce space/time complexity

The following resources are allowed

  • Wikipedia
  • Programming Language documentation
  • Coding tutorial
  • Books
  • Inclusion (within the solution) external libraries. However, be prepare to defend your decision

The following resources are NOT allowed

  • The help of another person
  • The help of an AI program (unless you wrote the AI from scratch to solve this problem)
  • Solutions (or partial solutions) found online or in printed materials that is solved by someone else

Overview

Complete the CrossWords.intersect method that returns a single string result.

Each input is expected to be a single word, consisting of only letters a-z

The class attempts to

Locate the earliest possible intersection of characters between the two words & crosses both words on the above intersection

The first word is to be rendered horizontally; while the second, vertically. The results are returned as a single string

Input & Output Examples

cat & hat:

 h
cat
 t

balloon & bat

balloon
a
t

faint & test

faint
    e
    s
    t

road & dad

  d
road
  d

dad & road

 r
 o
dad
 d

crosswords's People

Contributors

pjavadi avatar

Watchers

Pouya avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.