[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead [phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 118: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead CareersNG • View topic - Word search
CareersNG
Career Development for Nigerians ... A Knowledge Sharing Forum!
Word Search: Given a string of letters, identify all substrings that create one of five given words. For example, if the words (argument) are: structure; such; system; blue; red, then the string jkdistructuredstrusyssystemoon contains the first, third and fifth words, one each. Need a solution to this (using javascript).
_________________ Ideabroker(c)- Ideas that fuel positive change come from the Most High God. Ibroker(c)
Better still, you can make the answer variable an array and index the answers in that array. Allows you to iterate tru the answers else where (e.g outside your function).
Yea, largely I think we should remind many people not to reinvent the wheel whenever we have a problem to solve. That is the problem I seem to have with the academia. We can move on from where others have advanced or make only changes where what the have is not suitable. Last time on a shopping software problem, a suggestion was made that one should go study some language(s) and I think that is slightly primitive and should be discouraged. Rather, we should move forward with minimal cost in time and resource.
_________________ Ideabroker(c)- Ideas that fuel positive change come from the Most High God. Ibroker(c)
Joined: Mon May 22, 2006 11:56 am Posts: 2772 Location: Virtual
@banji, Yes i agree with you..., especially when you posted the topic in the business section. That completely validates your argument... nice one The concept of not re-inventing the wheel makes me even more happy..., because it says that Africa can leap-frog technology, we dont have to build from the scratch, but we can scratch an extension or invention from what has been built already.
Regards to all
_________________ Fowe. Choices make or mar Chances ... add extra care to your choices today.
Last edited by Fowe on Fri Nov 27, 2009 11:48 am, edited 1 time in total.
Users browsing this forum: No registered users and 1 guest
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum