₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,331,276 members, 8,449,535 topics. Date: Tuesday, 21 July 2026 at 11:30 PM

Toggle theme

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

Nairaland ForumScience/TechnologyProgrammingCoding Challenge 4: Finding Strings Within Strings (876 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 ProgrammersJava Coding Challenge: Task SchedulerCoding Challenge 5: Substring Generator234

Is Programming A Science-based Field,an Art Expression Or An Engrg DisciplineSo You Want To Be A Programmer, Huh? Here Are 27 Ways To Learn OnlineProgramming advice