Skip to content

Instantly share code, notes, and snippets.

View MelulekiDube's full-sized avatar
😊
Focusing

MelulekiDube

😊
Focusing
View GitHub Profile
@MelulekiDube
MelulekiDube / FB-PE-InterviewTips.md
Created May 26, 2026 19:34 — forked from ameenkhan07/FB-PE-InterviewTips.md
Facebook Production Engineering Interview

What to Expect and Tips

• 45-minute systems interview, focus on responding to real world problems with an unhealthy service, such as a web server or database. The interview will start off at a high level troubleshooting a likely scenario, dig deeper to find the cause and some possible solutions for it. The goal is to probe your knowledge of systems at scale and under load, so keep in mind the challenges of the Facebook environment.
• Focus on things such as tooling, memory management and unix process lifecycle.

Systems

More specifically, linux troubleshooting and debugging. Understanding things like memory, io, cpu, shell, memory etc. would be pretty helpful. Knowing how to actually write a unix shell would also be a good idea. What tools might you use to debug something? On another note, this interview will likely push your boundaries of what you know (and how to implement it).

Design/Architecture 

Interview is all about taking an ambiguous question of how you might build a system and letting

#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
static char board_state[9];
static int values[9];
char ai_player = 'O', opponent = 'X';
int status = 0;
@MelulekiDube
MelulekiDube / lazy_propagation.c
Created August 9, 2020 16:23
Simple implementation of lazy propagation
#include <stdlib.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
# define create(type, size) ((type*) malloc(sizeof(type)*size)) //to be used to malloc just to keep code neat
void update_children(int i, int se, int nv);
int *lazy; // this is lazy propagation
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import com.google.gson.JsonSyntaxException;
import java.io.*;
import java.util.Scanner;
<div id="errors" style="
background: #c00;
color: #fff;
display: none;
margin: -20px -20px 20px;
padding: 20px;
white-space: pre-wrap;
"></div>
<div id="root"></div>
<script>
package com.meluleki.corona.CoronaVirusApplicaion;
import org.springframework.core.ParameterizedTypeReference;
import org.springframework.http.*;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;
import java.lang.reflect.Type;
class Solution {
int min;
public int kSimilarity(String A, String B) {
if(A.length() != B.length()) return Integer.MAX_VALUE;
min = Integer.MAX_VALUE;
char [] a = A.toCharArray();
helper(a, B, 0, 0);
return min;
import java.util.*;
import java.io.File;
import java.io.IOException;
public class Main{
private Stack<Map<String, String>> stackTrace; // we are going to use this to store our maps
private Scanner sc; // scanner that we will use to read through the file
private StringBuilder output;
import java.util.Scanner;/*Always assume you will need this*/
public class Test1A /*Always create class with the file name*/{
public static void main( String[] arg){
/*Get rid of the scanner*/
Scanner sc = new Scanner(System.in);
/*start doing some work here
variable delcation follows here:
How to declare primitive which include int double float char boolean (these are not going to create objects):