News

Community driven content discussing all aspects of software development from DevOps to design patterns. Good programmers need to create code that efficiently solves problems, using various methods. A ...
Program that checks if a given string is whether a palindrome or not. To check this instead of check the hole string I do not have to loop over the hole ... The second one just use the reverse method ...
不然求一次palindrome, 就是n, 会变成O(n^3) #### Previous Notes - Double for loop 检查每种substring string (i~j). 若i,j相邻或者同点,那么肯定isPal;否则,i,j之间的(i+1, j-1)一定得isPal。 - 看上去,在检查i ...