Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
algorithms [2020/07/15 00:03]
paul [Maximum subarray]
algorithms [2020/07/15 00:34] (current)
paul [Longest Palindromic String]
Line 599: Line 599:
 }; </​code>​ }; </​code>​
  
-====  Longest Palindromic String ​=====+====  Longest Palindromic String ====
  
 Tricky sonofgun. Easiest way is to brute force, and check if every possible substring is a palindrome. Tricky sonofgun. Easiest way is to brute force, and check if every possible substring is a palindrome.
Line 607: Line 607:
 {{:​pasted:​20200715-000341.png?​500}} {{:​pasted:​20200715-000341.png?​500}}
  
 +==== Generate Parenthesis ====
 +
 +This is a backtracking algorithm where you either close or open a parenthesis. ​
  • algorithms.txt
  • Last modified: 2020/07/15 00:34
  • by paul