import React from 'react'; import ReactDOM from 'react-dom'; import BrowserOnly from '@docusaurus/BrowserOnly'; import clsx from 'clsx'; import styles from './styles.module.css'; const BACKGROUNDS = [ styles.backgroundPurplin, styles.backgroundFirewatch, styles.backgroundLush, styles.backgroundSweetMorning, styles.backgroundViceCity, styles.backgroundRadar, styles.backgroundCosmicFusion, styles.backgroundAzurePop, styles.backgroundTranquil, ]; function FAANGTechLeads({className, position}) { switch (position) { case 'docs_bottom': return ( { window.gtag('event', `faangtechleads.${position}.click`); }}>

Best resume service for FAANG
FAANG Tech Leads' resume review service helped many people get shortlisted at top Bay Area companies. Their resume templates are only $28 now (70% off) and tailored to your experience level.

); default: return ( { window.gtag('event', `faangtechleads.${position}.click`); }}>

Get shortlisted at FAANG
FAANG Tech Leads' resume review service helped many people get shortlisted at top Bay Area companies. Their resume templates are only $28 now (70% off) and tailored to your experience level.

); } } function AlgoMonster({className, position}) { return ( { window.gtag('event', `algomonster.${position}.click`); }}>

Stop grinding and study with a plan!
Developed by Google engineers, AlgoMonster is the fastest way to get a software engineering job. Join today for a 70% discount!!

); } function Moonchaser({className, position}) { return ( { window.gtag('event', `moonchaser.${position}.click`); }}>

Get paid more. Receive risk-free salary negotiation advice from Moonchaser. You pay nothing unless your offer is increased. Book a free consultation today!

); } function EducativeCoding({className, position}) { return ( { window.gtag('event', `educative.coding.${position}.click`); }}>

Get the job at FAANG
"Grokking the Coding Interview: Patterns for Coding Questions" by Educative is the best course for improving your algorithms interview game. Join today for a 10% discount!

); } function EducativeSystemDesign({className, position}) { return ( { window.gtag('event', `educative.system_design.${position}.click`); }}>

Get the job at FAANG
"Grokking the System Design Interview" by Educative is a highly recommended course for improving your system design interview game.{' '} Join today for a 10% discount!

); } export default React.memo(function SidebarAd({position}) { const backgroundClass = BACKGROUNDS[Math.floor(Math.random() * BACKGROUNDS.length)]; // Because the SSR and client output can differ and hydration doesn't patch attribute differences, // we'll render this on the browser only. return ( {() => { const path = window.location.pathname; // Ugly hack to show conditional sidebar content. if (path.includes('resume')) { return ( ); } if (path.includes('negotiation') || path.includes('compensation')) { return ( ); } if ( path.includes('coding') || path.includes('best-practice-questions') || path.includes('cheatsheet') || path.includes('mock-interviews') || path.includes('algorithms') ) { return Math.random() > 0.5 ? ( ) : ( ); } if (path.includes('system-design')) { return ( ); } return Math.random() > 0.5 ? ( ) : ( ); }} ); });