Coder Social home page Coder Social logo

Kyrah Wiggins's Projects

cc17_prob2 icon cc17_prob2

* Sometimes when we type we just miss letters. Other times we go to a * programming competition and we’re asked to remove letters from perfectly * good words. Your task is to write a program which given a String and an integer * will print a new String missing the character at the given place. * * The 1st line of the file Prob02.in.txt will contain a positive integer TC denoting * the number of test cases that follow. Each test case will have the following * input: * * A single line containing a word, then a space, then a positive integer. The * integer tells us which character to remove from the string, and is 0-based * (meaning that a 0 means take away the first letter). The index given will * always be valid – no tricks here! * * Example Input: * 4 * puppy 0 * kitten 4 * fish 1 * dog 2 * * Example Output: * Your program should print the new word with the appropriate character * missing. * * uppy * kittn * fsh * do

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.