Category : search

I’m trying to recursively search a character array for the first occurrence of a sequence comprised of another character array. I’m not allowed to use strings, predefined string functions, or loops. The character arrays that I’m searching in are names used in the program, and this function is used in another function that asks the ..

Read more

I’m a beginner in graph algorithms. I implement the graph and try to find that, is there any edge between the two nodes. So I Create a function called FindEdge() that finds the first node perfectly but unable to find the second node in the graph. Please help. I attached my code in this post ..

Read more

I’m trying to filter a string of 2 vectors based on what they have. By that I mean my vector fvalues contains ["2","4","3"] and another vector xbarl contains["1","2","3","4"]. I want to sort through both of them and add the value which is in xbarl but not in fvalues to another string of vectors. So using ..

Read more