TOUGH TONGUE AI
  • Home
    LogoTOUGH TONGUE AI

    RESOURCES

    Loading...

    HomeCoursesCrack The Coding Interview - I

    Crack The Coding Interview - I

    Please sign in to view your progress

    A set of medium difficulty coding questions to excel your next coding round at your dream Tech Company.

    26 scenarios
    Public
    #Name
    1
    AR
    Array Arrangement Generator
    In this coding interview, you'll solve a classic algorithmic problem: generate all possible arrangements (permutations) of a given array of unique integers. This tests your understanding of recursion, backtracking, and combinatorial algorithms.
    2
    UN
    Unique Arrangement Generator
    In this coding interview, you'll solve a challenging algorithmic problem: given an array of integers that may contain duplicates, generate all possible unique arrangements (permutations) of the elements. Each distinct permutation should appear exactly once in your result.
    3
    PE
    Peak Subarray Sum
    In this coding interview, you'll solve the classic maximum subarray problem: given an integer array, find the contiguous subarray that produces the largest sum. This is a fundamental algorithmic challenge that tests your understanding of dynamic programming and optimization techniques.
    4
    MA
    Matrix Spiral Traversal
    In this coding interview, you'll solve a classic matrix traversal problem: given a rectangular matrix of integers, traverse all elements following a spiral pattern starting from the top-left corner and return the elements in order.
    5
    TH
    The Great Leap Challenge
    In this coding interview, you'll solve a dynamic programming problem: given an array representing platforms with jump distances, determine if you can reach the final platform starting from the first one.
    6
    IN
    Interval Fusion Challenge
    In this coding interview, you'll solve a classic algorithmic problem: given a collection of time intervals, merge all overlapping intervals and return a consolidated list of non-overlapping intervals.
    7
    SP
    Spiral Matrix Builder
    In this coding interview, you'll solve an algorithmic problem: create a function that constructs a square matrix filled with consecutive integers arranged in a clockwise spiral pattern starting from the top-left corner.
    8
    CI
    Circular Shift Challenge
    In this coding interview, you'll solve a linked list manipulation problem: given the head of a singly linked list, perform a rightward circular shift by k positions and return the new head. Think of it like a conveyor belt where elements that fall off the right end wrap around to the beginning!
    9
    RO
    Robot Grid Navigator
    In this coding interview, you'll solve a classic dynamic programming problem: calculate the number of unique paths a robot can take to navigate from the top-left corner to the bottom-right corner of a rectangular grid, with movement restrictions to only right and down directions.
    10
    RO
    Robot's Obstacle Course Challenge
    In this coding interview, you'll solve a dynamic programming problem: help a robot navigate through an obstacle-filled grid from the top-left corner to the bottom-right corner, calculating the total number of unique paths while avoiding obstacles. The robot can only move right or down.
    11
    TR
    Treasure Hunt: Finding the Cheapest Path
    In this coding interview, you'll solve a dynamic programming problem: find the minimum cost path from the top-left corner to the bottom-right corner of a grid, where you can only move right or down.
    12
    UN
    Unix Path Navigator
    In this coding interview, you'll solve a classic file system problem: transform an absolute Unix-style file system path into its simplified canonical form. Navigate through the directory maze by following Unix conventions and clean up messy paths!
    13
    ST
    String Transformation Challenge
    In this coding interview, you'll solve a classic dynamic programming problem: transform one string into another using the minimum number of edit operations. Test your algorithmic skills with this fundamental string manipulation challenge!
    14
    MA
    Matrix Zero Propagation
    In this coding interview, you'll solve an algorithmic problem involving matrix manipulation: transform a given matrix by propagating zeros, where encountering a zero in any cell requires setting the entire row and column containing that zero to zeros. The challenge is to perform this transformation in-place without using additional matrices.
    15
    MA
    Matrix Treasure Hunt
    In this coding interview, you'll solve an algorithmic problem involving searching in a specially organized matrix. Given a matrix where each row is sorted and the first element of each row is greater than the last element of the previous row, you need to efficiently determine if a target value exists in the matrix.
    16
    RA
    Rainbow Flag Organizer
    In this coding interview, you'll solve a classic array sorting problem: organize colored objects (red, white, blue) in-place without using built-in sorting functions. This is also known as the Dutch National Flag problem.
    17
    NU
    Number Selection Combinations
    In this coding interview, you'll solve a combinatorial problem: generate all possible combinations of selecting k distinct numbers from a range [1, n]. This tests your understanding of recursion, backtracking, and mathematical combinations.
    18
    PO
    Power Set Generator
    In this coding interview, you'll solve a classic algorithmic problem: given an integer array containing unique elements, generate and return all possible subsets (the power set).
    19
    LE
    Letter Grid Explorer
    In this coding interview, you'll solve a challenging grid traversal problem: determine whether a target word can be found within a character grid by connecting adjacent letters. This tests your understanding of backtracking algorithms and 2D array manipulation.
    20
    AR
    Array Deduplication with Dual Occurrence Limit
    In this coding interview, you'll solve an array manipulation problem: given a sorted integer array, remove duplicates in-place while allowing each unique element to appear at most twice in the final result.
    21
    PU
    Purge Duplicate Elements from Sorted Chain
    In this coding interview, you'll solve a challenging linked list problem: given the head of a sorted linked list, eliminate all nodes that contain duplicate values, keeping only elements that appear exactly once in the original list.
    22
    LI
    Linked List Reorganizer
    In this coding interview, you'll solve a classic algorithmic problem: given the head of a singly linked list and a pivot value, reorganize the list so that all nodes with values less than the pivot appear before all nodes with values greater than or equal to the pivot while maintaining relative order.
    23
    BI
    Binary Reflection Sequence Generator
    In this coding interview, you'll solve a fascinating algorithmic problem: generate a valid n-bit binary reflection sequence (Gray code) with special properties where each adjacent pair of integers differs by exactly one bit.
    24
    UN
    Unique Power Set Generator
    In this coding interview, you'll solve an algorithmic problem involving generating all unique subsets from an array that may contain duplicate elements. You'll need to handle duplicates intelligently while ensuring the power set contains only distinct subset combinations.
    25
    DI
    Digital Dot Detective
    In this coding interview, you'll solve an algorithmic problem involving IP address validation: given a string of digits, find all possible valid IP addresses that can be formed by strategically placing dots within the string.
    26
    BI
    Binary Tree Counting Challenge
    In this coding interview, you'll solve a dynamic programming problem: given a positive integer n, determine how many structurally distinct binary search trees can be constructed that contain exactly n nodes with unique values ranging from 1 to n.