Bir yerde palindrome ile ilgili su analize denk geldim http://componentsprogramming.com/palindromes/Konu, string icin isPalindrome methodu yazmak, gayet basit. Arkadas guzelce anlatimini da yapmis 3 tane algoritmanin. Altlara dogru bir kisimda soyle bir sey yazmis, sebebini anlayamadim, neden oldugu
Bir yerde palindrome ile ilgili su analize denk geldim
componentsprogramming.comKonu, string icin isPalindrome methodu yazmak, gayet basit. Arkadas guzelce anlatimini da yapmis 3 tane algoritmanin. Altlara dogru bir kisimda soyle bir sey yazmis, sebebini anlayamadim, neden olduguna dair fikri olan var mi?
---
Algorithm N versus Algorithm O
While previously we saw that the Algorithm O performs half of operations than Algorithm N, in the worst case; the runtime of both algorithms is affected by several factors, including: the length of the word, if the word is palindrome or not, and other factors relevant to the platform.
// ANLAMADIGIM KISIM BASLIYOR
In many cases Algorithm N is faster than Algorithm O.
// IKISI ARASINDAKI TEK FARK OPTIMAL ALGORITMADA STRING'IN YARISINA KADAR COMPARISON YAPIYOR, NASIL NAIVE ALGORITHM DAHA IYI OLUR?
We will discuss this in a future article.