---
title: "Sloth (@TechSloth) | Hashnode"
description: "Helping others perform better in technical interviews. Read the latest articles by Sloth on Hashnode."
url: "https://hashnode.com/@TechSloth"
---

@TechSloth

# Sloth

@TechSloth · Joined April 2021

Helping others perform better in technical interviews.

### [Crushing Tech Interviews with the Top K Elements Pattern](https://techsloth.io/crushing-tech-interviews-with-the-top-k-elements-pattern?utm_source=hashnode&utm_medium=feed)

To follow up from my previous post, let's dig more into some patterns that revolve around heaps! When you're given a question that revolves around keeping track of k elements, a good bet is to think about solving the problem with heaps. Lets say you'...

2 min read · [techsloth.io](https://techsloth.io/crushing-tech-interviews-with-the-top-k-elements-pattern?utm_source=hashnode&utm_medium=feed)

[Apr 15, 2021](https://hashnode.com/posts/crushing-tech-interviews-with-the-top-k-elements-pattern/607863924155da32fc83c83f)

### [Crushing Tech Interviews with the Two Heaps Pattern](https://techsloth.io/crushing-tech-interviews-with-the-two-heaps-pattern?utm_source=hashnode&utm_medium=feed)

If we have a problem where we're interested in knowing the smallest in element in one part of a given set of elements and the biggest element in the other part, we can use the two heaps pattern. Lets work through this problem together: Implement a cl...

4 min read · [techsloth.io](https://techsloth.io/crushing-tech-interviews-with-the-two-heaps-pattern?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/crushing-tech-interviews-with-the-two-heaps-pattern/60770ac34155da32fc83ab77) [Apr 14, 2021](https://hashnode.com/posts/crushing-tech-interviews-with-the-two-heaps-pattern/60770ac34155da32fc83ab77)

### [Crushing Tech Interviews with the Linked List Reversal Pattern](https://techsloth.io/crushing-tech-interviews-with-the-linked-list-reversal-pattern?utm_source=hashnode&utm_medium=feed)

Ah, a good old linked list problem. Some people love them, some people help them. Hopefully with this pattern, you'll love questions which ask you to reverse the links between a set of nodes of a linked list. It may sounds like a niche pattern but it...

2 min read · [techsloth.io](https://techsloth.io/crushing-tech-interviews-with-the-linked-list-reversal-pattern?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/crushing-tech-interviews-with-the-linked-list-reversal-pattern/6075bf4585f3a21e3926d311) [Apr 13, 2021](https://hashnode.com/posts/crushing-tech-interviews-with-the-linked-list-reversal-pattern/6075bf4585f3a21e3926d311)

### [Crushing Tech Interviews with the Cyclic Sort Pattern](https://techsloth.io/crushing-tech-interviews-with-the-cyclic-sort-pattern?utm_source=hashnode&utm_medium=feed)

This pattern is useful when dealing with problems involving arrays containing numbers in a range. How would you solve the following problem? Given n distinct numbers from 0 to n. Find the missing number. Key words to pick out here: distinct, 0 to n ...

2 min read · [techsloth.io](https://techsloth.io/crushing-tech-interviews-with-the-cyclic-sort-pattern?utm_source=hashnode&utm_medium=feed)

[Apr 12, 2021](https://hashnode.com/posts/crushing-tech-interviews-with-the-cyclic-sort-pattern/60740e7d05d3c618c24790b9)

### [Crushing Tech Interviews with the Merge Intervals Pattern](https://techsloth.io/crushing-tech-interviews-with-the-merge-intervals-pattern?utm_source=hashnode&utm_medium=feed)

This pattern is useful when dealing with interval questions. A lot of the questions will require us to merge overlapping intervals in a given list. First step to answering a question like this is to answer the following question: How many ways can tw...

2 min read · [techsloth.io](https://techsloth.io/crushing-tech-interviews-with-the-merge-intervals-pattern?utm_source=hashnode&utm_medium=feed)

[Apr 11, 2021](https://hashnode.com/posts/crushing-tech-interviews-with-the-merge-intervals-pattern/607303138b2b857c0bdb6e28)
