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.backgroundBlue, styles.backgroundOrange, styles.backgroundPurple, styles.backgroundRed, ]; function TopResume({className}) { return ( { window.gtag('event', 'topresume.sidebar.click'); }}>

Best resume service for FAANG
If you are running low on time, I recommend TopResume's{' '} free resume review services, which has helped countless software engineers get interviews at FAANG.

); } function Moonchaser({className}) { return ( { window.gtag('event', 'moonchaser.sidebar.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 Educative({className}) { return ( { window.gtag('event', 'educative.sidebar.click'); }}>

Looking to get hired at FAANG?
Educative offers many great courses to improve your interview game. Join today for a 10% discount!

); } function EducativeCoding({className}) { return ( { window.gtag('event', 'educative.coding.sidebar.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}) { return ( { window.gtag('event', 'educative.coding.sidebar.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() { 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.startsWith('/resume')) { return ; } if ( path.includes('negotiation') || path.startsWith('/understanding-compensation') ) { return ; } if ( path.includes('coding') || path.startsWith('/best-practice-questions') || path.startsWith('/cheatsheet') || path.startsWith('/mock-interviews') || path.startsWith('/algorithms') ) { return ( ); } if (path.includes('system-design')) { return ( ); } return Math.random() > 0.5 ? ( ) : ( ); }} ); });