Skip to content

Instantly share code, notes, and snippets.

View aershov24's full-sized avatar
🇦🇺

Alex Ershov aershov24

🇦🇺
View GitHub Profile

25 Redis Interview Questions (ANSWERED) For Web Developers

Redis offers a great deal of support for developing efficient caching mechanisms. It takes only a couple of minutes to implement a cache mechanism and get it working with any application. Follow along to learn 25 most common Redis Interview Questions and Answers for your next senior web developer interview.

Q1: What is Redis?

Topic: Redis
Difficulty: ⭐

Redis, which stands for Remote Dictionary Server, is a fast, open-source, in-memory key-value data store for use as a database, cache, message broker, and queue.

You can run atomic operations, like appending to a string; incrementing the value in a hash; pushing an element to a list; computing set intersection, union and difference; or getting the member with highest ranking in a sorted set.

@aershov24
aershov24 / coinmarketcap_map_id.json
Created June 6, 2021 06:41
CoinMarketCap Coins Map ID JSON in one file
/* Check
www.cryptowaves.app
for Real-Time Crypto Market RSI Alerts! */
[
{
"id": 1,
"name": "Bitcoin",
@aershov24
aershov24 / Markdium-JavaScript.js
Created October 14, 2020 05:41
Markdium-25 NoSQL Interview Questions (ANSWERED) You Must Know In 2020
{
_id: "4c6b9456f61f000000007ba6"
title: [
{ version: 1, value: "Hello world" },
{ version: 6, value: "Foo" }
],
body: [
{ version: 1, value: "Is this thing on?" },
{ version: 2, value: "What should I write?" },
{ version: 6, value: "This is the new body" }
@aershov24
aershov24 / Markdium-JavaScript.js
Created October 14, 2020 05:41
Markdium-25 NoSQL Interview Questions (ANSWERED) You Must Know In 2020
{
$lookup:
{
from: <collection to join>,
localField: <field from the input documents>,
foreignField: <field from the documents of the "from" collection>,
as: <output array field>
}
}
@aershov24
aershov24 / Markdium-JavaScript.js
Created October 14, 2020 05:41
Markdium-25 NoSQL Interview Questions (ANSWERED) You Must Know In 2020
{
_id: "4c6b9456f61f000000007ba6"
title: "Bar",
body: "Is this thing on?",
tags: [ "test", "trivial" ],
comments: [
{ key: 1, author: "joe", body: "Something cool" },
{ key: 2, author: "xxx", body: "Spam", deleted: true },
{ key: 3, author: "jim", body: "Not bad at all" }
],
@aershov24
aershov24 / Markdium-Java.java
Created October 13, 2020 05:28
Markdium-14 Fibonacci Interview Questions (SOLVED) To Brush Before Coding Interview
double fibbonaci(int n){
double prev=0d, next=1d, result=0d;
for (int i = 0; i < n; i++) {
result=prev+next;
prev=next;
next=result;
}
return result;
}
@aershov24
aershov24 / Markdium-JavaScript.js
Created October 13, 2020 05:28
Markdium-14 Fibonacci Interview Questions (SOLVED) To Brush Before Coding Interview
function fibonacci(num, memo) {
memo = memo || {};
if (memo[num]) return memo[num];
if (num <= 1) return 1;
return memo[num] = fibonacci(num - 1, memo) + fibonacci(num - 2, memo);
}
@aershov24
aershov24 / Markdium-JavaScript.js
Created October 13, 2020 05:28
Markdium-14 Fibonacci Interview Questions (SOLVED) To Brush Before Coding Interview
16/192 = 0.08333333...
208/16 = 13
...
11984/7408 = 1.61771058...
19392/11984 = 1.61815754...
@aershov24
aershov24 / Markdium-Python.py
Created October 13, 2020 05:28
Markdium-14 Fibonacci Interview Questions (SOLVED) To Brush Before Coding Interview
def FibonacciSearch(lys, val):
fibM_minus_2 = 0
fibM_minus_1 = 1
fibM = fibM_minus_1 + fibM_minus_2
while (fibM < len(lys)):
fibM_minus_2 = fibM_minus_1
fibM_minus_1 = fibM
fibM = fibM_minus_1 + fibM_minus_2
index = -1;
while (fibM > 1):
@aershov24
aershov24 / Markdium-Shell.sh
Created October 13, 2020 05:28
Markdium-14 Fibonacci Interview Questions (SOLVED) To Brush Before Coding Interview
// |<-- p: F(n-2) - 1 -->|
// |<--- q --->| |<- r ->|
// +---+---+---+
// | | k | | m
// +---+---+---+
// ^