import React, { useEffect, useState } from 'react'; import BrowserOnly from '@docusaurus/BrowserOnly'; import clsx from 'clsx'; import styles from './styles.module.css'; const AD_REFRESH_RATE = 20 * 1000; function FAANGTechLeads({ position }) { return ( { window.gtag('event', `faangtechleads.${position}.click`); }}>

Craft the perfect resume for Google and Facebook Save time crafting your resume with FAANG Tech Leads'{' '} FAANG-quality resume templates and examples which have helped many Software Engineers get interviews at top Bay Area companies!

); } function TIHResumeReview({ position }) { return ( { window.gtag('event', `tih.resume_review.${position}.click`); }}>

Get your resume reviewed for free Try out our free new community-powered resume review portal. Upload a resume, receive helpful comments and feedback from community members.

); } function GreatFrontEnd({ position }) { return ( { window.gtag('event', `greatfrontend.${position}.click`); }}>

LeetCode for Front End Prepare with Great Front End's large pool of high quality front end interview questions and solutions!

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

Stop grinding mindlessly. Study with a plan Developed by Google engineers, AlgoMonster is the fastest way to get a software engineering job. Check it out for free!

); } function Rora({ position }) { return ( { window.gtag('event', `rora.${position}.click`); }}>

Risk-free salary negotiation help {' '} Receive risk-free salary negotiation advice from Rora. You pay nothing unless your offer is increased.{' '} Book your free consultation today!

); } function DesignGurusCoding({ position }) { return ( { window.gtag('event', `designgurus.coding.${position}.click`); }}>

Stop memorizing solutions Grokking the Coding Interview teaches you techniques and question patterns to ace coding interviews. Grab your lifetime access today!

); } function DesignGurusSystemDesign({ position }) { return ( { window.gtag('event', `designgurus.system_design.${position}.click`); }}>

Get the job at FAANG Grokking the System Design Interview is a highly recommended course to get better at system design interviews. Find out more!

); } function ByteByteGoSystemDesign({ position }) { return ( { window.gtag('event', `bytebytego.system_design.${position}.click`); }}>

Ace Your Next System Design Interview ByteByteGo's system design interview course is everything you need to take your system design skill to the next level.{' '} Find out more!

); } function Interviewingio({ position }) { return ( { window.gtag('event', `interviewingio.${position}.click`); }}>

Practice interviewing with Google engineers interviewing.io provides anonymous technical mock interviews with engineers from Google, Facebook, and other top companies.{' '} Give it a try!

); } export default React.memo(function SidebarAd({ position }) { const [counter, setCounter] = useState(0); useEffect(() => { const timer = setTimeout(() => { setCounter((counter) => counter + 1); }, AD_REFRESH_RATE); return () => clearTimeout(timer); }, [counter]); // 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 rand = Math.random(); const path = window.location.pathname; // Ugly hack to show conditional sidebar content. if ( (path.includes('software-engineering-interview-guide') || path.includes('coding-interview-prep')) && position === 'in_doc' ) { return ; } if (path.includes('resume')) { return rand < 0.67 ? ( ) : ( ); } if (path.includes('negotiation') || path.includes('compensation')) { return ; } if (path.includes('system-design')) { return rand < 0.5 ? ( ) : ( ); } // if ( // path.includes('coding') || // path.includes('best-practice-questions') || // path.includes('mock-interviews') || // path.includes('algorithms') // ) { // return rand < 0.3 ? ( // // ) : rand < 0.6 ? ( // // ) : ( // // ); // } return rand < 0.5 ? ( ) : rand < 0.75 ? ( ) : ( ); }} ); });