test's Introduction
BossHog Write some code that prints the numbers from 1 to 100. But for multiples of three print ¡°Boss¡± instead of the number and for the multiples of five print ¡°Hog¡±. For numbers which are multiples of both three and five print ¡°BossHog¡±." Preface: Do not use any extended functionality of the framework to solve this problem. (For example, don't use the string finding methods of IndexOf, Substring, Contains, regular expression classes, etc). Problem: We need a way of finding all the occurrences of a particular set of characters in a string. The set of characters can occur anywhere within the string. The sample listed below should not be considered the only inputs and outputs We need a class that has a public method named ¡°Find¡± that returns a string This method accepts two strings as input. One called 'textToSearch' and one called 'subtext' The solution should match the subtext against the textToSearch, outputting the positions of the beginning of each match for the subtext within the textToSearch. Multiple matches are possible Matching is case insensitive If no matches have been found, ¡°<No Output>¡± is generated Sample Output This is a sample subset of all possible inputs, there will be inputs not listed here that will have different outputs. textToSearch = "Peter told me (actually he slurrred) that peter the pickle piper piped a pitted pickle before he petered out. Phew!" Input subtext Expected Output Peter 1, 43, 98 peter 1, 43, 98 Pick 53, 81 Pi 53, 60, 66, 74, 81 Z <No Output>
test's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.