Top answers


Given two strings s1 and s2 return the location of each permutation of the s1 string within the s2 string.

Solution: Iterate through s2 and select blocks of characters of length equal to that of s1 (for simplicity let's call this block string ref). Now, check if ref is a permutation of s1 . To check this we have ...
VH
Answered by Vlad H. Computing tutor
1636 Views

What is the best way to answer a source question?

When you look at or read a source, you need to bear in mind the following,Source : where does it come from? Make sure to look at the date and think about who wrote it.Objective : why was it written / produce...
CD
Answered by Chloe D. History tutor
7539 Views

evaluate the learning theory of attachment (8 marks)

A range of studies actually counteract this theory in that we don’t necessarily attach to those that feed us. For example Lorenz’s geese imprinted before they were fed and maintained these no matter who fed ...
MB
Answered by Megan B. Psychology tutor
10723 Views

Discuss how Tennyson represents fatigue within his poem, The Lotus Eaters

The essay must:Be between 1-2 pages of written workMake between 3-5 different arguments within the body of the textInclude an introductionInclude a conclusionHave coherent and correct spelling and grammarArg...
LH
3912 Views

Why is ꭍ2x=x^2+C?

Differentiating x 2 gives dx 2 /dx=2x. Differentiating a constant C gives 0. d( x 2 +C)/dx=dx 2 /dx+dC/dx=2x+0=2x. Since integration is the inverse function of differentiation, integrating 2x gives x 2 +C.
LD
Answered by Larisa D. Maths tutor
6200 Views