₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,381 members, 8,511,579 topics. Date: Monday, 02 November 2026 at 12:01 AM

Toggle theme

Coding Challenge 4: Finding Strings Within Strings - Programming - Nairaland

Nairaland Forum › Science/Technology › Programming › Coding Challenge 4: Finding Strings Within Strings (883 Views)

1 Reply (Go Down)

Coding Challenge 4: Finding Strings Within Strings by Fayimora(op): 1:43pm On Jul 07, 2011
Challenge
Your task is to implement using iteration recursion a method that checks if a string is in a larger string, i.e a substring in a string.
Given the word "Mississipi" and a String 'sip', your method should return true.

Further more, implement an integer method that returns the starting position of the smaller string, in this case, sip. So in total, given the above inputs you program should print

true
6

Goodluck.
Re: Coding Challenge 4: Finding Strings Within Strings by Nobody:
Re: Coding Challenge 4: Finding Strings Within Strings by Fayimora(op): 6:00pm On Jul 07, 2011
You are supposed to have 2 methods, A boolean and an int method
Re: Coding Challenge 4: Finding Strings Within Strings by Nobody:
1 Reply

Mini Web Application Coding Challenge For Programmers • Java Coding Challenge: Task Scheduler • Coding Challenge 5: Substring Generator • 2 • 3 • 4

Help! I Am Writing About: Travelling Salesman Problem • PHP Masters Pls Help A PHP Learner Please. • Get Your Ideas Funded Participate In The Pitch Theater Of ICT &telecomms Expo