---
title: "Amr Saber (@amr-saber) | Hashnode"
description: "software engineering. Read the latest articles by Amr Saber on Hashnode."
url: "https://hashnode.com/@amr-saber"
---

@amr-saber

# Amr Saber

@amr-saber · Joined October 2021

software engineering

## Comments

[It's fine, Simon Espigolé. I know life gets in the way sometimes, I just wanted to check if you wrote it somewhere else. I enjoyed this article by the way, some good content and insights here. Thank you for sharing that!](https://hashnode.com/posts/why-we-replaced-elasticsearch-with-postgres-full-text-search/63bae1ae79c4e072cf6f7420/comment/670b394e490c11ec20432cde#reply-670c8fd98a1c7158a7c10158)

Reply · Article · Oct 14, 2024 · [Why we replaced Elasticsearch with Postgres Full-Text Search](https://hashnode.com/posts/why-we-replaced-elasticsearch-with-postgres-full-text-search/63bae1ae79c4e072cf6f7420)

[I actually won't go into details about Postgres FTS functions here, but I will add a link to another blog post (which I'm almost done writing) later. Not sure if you forgot to add the link or didn't write the other blog post. Would be nice though to leave the link if you did write that blog post.](https://hashnode.com/posts/why-we-replaced-elasticsearch-with-postgres-full-text-search/63bae1ae79c4e072cf6f7420/comment/670b394e490c11ec20432cde)

Comment · Article · Oct 13, 2024 · [Why we replaced Elasticsearch with Postgres Full-Text Search](https://hashnode.com/posts/why-we-replaced-elasticsearch-with-postgres-full-text-search/63bae1ae79c4e072cf6f7420)

[The order of the old implementation is not O(n^3) it's O(3^n) as you branch 3 times for each call, and you have total n different cases, so it's 3 \* 3 \* 3 \* 3 ... n times which is 3^n.](https://hashnode.com/posts/how-to-solve-the-staircase-problem-with-javascript-using-memoization/62c8bcbde62bf98e0fb06a4a/comment/62c8c7b2e62bf98e0fb06b25)

Comment · Article · Jul 9, 2022 · [How to Solve the Staircase Problem with JavaScript using Memoization](https://hashnode.com/posts/how-to-solve-the-staircase-problem-with-javascript-using-memoization/62c8bcbde62bf98e0fb06a4a)

[The complexity of the provided solution is exponential, because you branch 3 times in each recursive call, the complexity is about O(3^n) wich is very bad and will not scale at all for any large N. A very simple fix is using memoization. You can change the function a bit to accept the nber of remaining steps, in that case you can think about it as "what's the possible ways to solve x steps" that way you can save the solution to that x in a global map (would be a closure in a real world app) and when you enter the function you check if you already know the solution to x, you just return the value. Pretty much like memoizing the calculation of Fibonacci numbers.](https://hashnode.com/posts/how-to-solve-the-staircase-problem-with-5-lines-of-javascript/62c8800555f37390f97ca6c5/comment/62c891a355f37390f97ca97a)

Comment · Article · Jul 8, 2022 · [How to Solve the Staircase Problem with 5 Lines of JavaScript](https://hashnode.com/posts/how-to-solve-the-staircase-problem-with-5-lines-of-javascript/62c8800555f37390f97ca6c5)

[You did some good work there, but I have a comment, in most of your code you place the curly braces opening "{" wrongly, they cannot be on a new line due to some compiler limitations, you need to place them on the same line as the declared function or struct. Most of the provided code as it is now won't even compile.](https://hashnode.com/posts/golang-interview-questions--deleted/60cc279d554b0d31c6052456/comment/623601018e4fae3f767dd847)

Comment · Article · Mar 19, 2022 · [50 Best Golang Interview Questions For 2021](https://hashnode.com/posts/golang-interview-questions--deleted/60cc279d554b0d31c6052456)
