Giter Site home page Giter Site logo

leodeveloper / textmatching Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 2.71 MB

INTRODUCTION Spend as much time as required to solve this problem. No time limit is applied. Write production quality code in your usual style, using C#. Do not use built-in language functionality to directly solve the problem. So do not use the built-in pattern matching functions: String::split(), String::indexOf(), String::lastIndexOf(), String::substring(), Regex.Match(), etc... The solution should provide this functionality if applicable. You may use the String class to hold information while your own algorithm does the matching. Do not copy an existing algorithm from the Internet; you do not need to implement the fastest possible algorithm. You may choose any means of accepting input and producing output, including the use of a test harness. Note: String functions not related to matching can be used. Please return the completed code in a zip file named CODE_TEST_<Candidate Name>.zip REQUIREMENTS Write an application that fulfils the following requirements: 1. Accepts two strings as input: one string is called "text" and the other is called "subtext" in this problem statement, 2. Matches the subtext against the text, outputting the character positions of the beginning of each match for the subtext within the text. 3. Allows multiple matches 4. Allows case insensitive matching ACCEPTANCE CRITERIA Input text: Polly put the kettle on, polly put the kettle on, polly put the kettle on we'll all have tea Subtext: Output: INTERCONTINENTAL EXCHANGE Code Test: Text Matching | v 1.00 © 2017 Intercontinental Exchange, Inc. Polly 1, 26, 51 Subtext: Output: polly 1, 26, 51 Subtext: Output: ll 3, 28, 53, 78, 82 Subtext: Output: Ll 3, 28, 53, 78, 82 Subtext: Output: X <no matches> Subtext: Output: Polx <no matches>

C# 100.00%

textmatching's People

Contributors

leodeveloper avatar

Stargazers

 avatar

Watchers

 avatar  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.