Click here to Skip to main content
15,880,967 members

Comments by Prilvesh K (Top 4 by date)

Prilvesh K 21-Apr-23 7:48am View    
Deleted
For a bit of context on what the above solution does :

<match url="^/mypage"> is a regular expression pattern that matches any URL that starts with /mypage, such as /mypage, /mypage/, /mypage/subpage, and so on. The ^ character at the beginning of the pattern denotes the start of the string.

So the op posted he removed the back slashes & it worked but this is what it does

<match url="^mypage"> is also a regular expression pattern, but it matches any URL that contains the string mypage anywhere in the URL, not just at the beginning. The ^ character at the beginning of the pattern is unnecessary and may cause the pattern to not match as expected.
Prilvesh K 21-Apr-23 7:21am View    
The point of my solution is 2 fold .
1) Redirect anyone confused to know about Manacher's Algorithm
2) Provide alternate solution way to solve the same problem as indicated by steps 1-3
Thus the new solution,
It all comes down to providing clarity to the would be readers that need help, In this case now its crystal clear that Manacher's Algorithm is the way to go ! .
Prilvesh K 21-Apr-23 7:02am View    
It's good for the readers to know the name of the Algorithm being used .
As the solution & nor the link https://www.akalin.com/longest-palindrome-linear-time mention that " Manacher's Algorithm" is the name of the algorithm being used.

Multiple urls being posted in the comments section is ambiguous so giving a tertiary level direction on the expected algorithm with its proper name is helpful .
Prilvesh K 22-Nov-18 22:52pm View    
This is how I normally check :

You can debug by checking if your server is running and is serving on a correct port of 59927 by visiting this link directly from your web browser http://localhost:59927

Next check if you are doing a get request to the correct api route
http://localhost:59927//api//Values//FlagingDevice

Than check what is the raw response it give you and if you are parsing it correctly .

Most likely its one of the above issues .