JobsJob TrackerJob alerts

Fastenal ยท 11 questions

All 11Coding 8Low-Level Design 1Behavioral 2
  • Explain a major web-based projectBehavioral
  • LeetCode Hard DSA problemCoding
  • SQL Query with JOIN and GROUP BYCoding
  • OOPS pillars and abstract class vs interfaceLow-Level Design
  • Find Largest Distance Between Character OccurrencesCoding
  • Count Distinct PasswordsCoding
  • Find Pair with Target Sum in ArrayCoding
  • Binary Search Tree Insertion and SearchingCoding
  • Simple String Coding QuestionCoding
  • Core Subjects, C++ and Chat Application SegregationCoding
  • Background, Pandemic Situation, and Company MotivationBehavioral
โ† Fastenal questions
  1. Interview questions
  2. Fastenal
  3. Find Largest Distance Between Character Occurrences
CodingMedium

Find Largest Distance Between Character Occurrences

Filed under Fastenal

The question

Given string X and single character Y, find the largest distance (number of distinct characters excluding whitespaces) between any two occurrences of Y in X. Return -1 if not enough occurrences.

No write-up yet. Related questions below have one.

Related Fastenal questions

  • LeetCode Hard DSA problem
  • SQL Query with JOIN and GROUP BY
  • Count Distinct Passwords
  • Binary Search Tree Insertion and Searching
  • Simple String Coding Question
โ† OOPS pillars and abstract class vs interfaceCount Distinct Passwords โ†’

Collected from public candidate posts and coding forums. Updated Nov 2026.