Skip to contentSkip to footer
  • Community
  • Jobs
  • Companies
  • Salaries
  • For employers
      Notifications

      Loading...

      Elevate your career

      Discover your earning potential, land dream jobs, and share work-life insights anonymously.

      employer cover photo
      employer logo
      employer logo

      TuSimple

      Is this your company?

      About
      Reviews
      Pay and benefits
      Jobs
      Interviews
      Interviews
      Related searches: TuSimple reviews | TuSimple jobs | TuSimple salaries | TuSimple benefits
      TuSimple interviewsTuSimple Software Development Engineer General interviewsTuSimple interview


      Glassdoor

      • About / Press
      • Awards
      • Blog
      • Research
      • Contact Us
      • Guides

      Employers

      • Free Employer Account
      • Employer Centre
      • Employers Blog

      Information

      • Help
      • Guidelines
      • Terms of Use
      • Privacy and Ad Choices
      • Do Not Sell Or Share My Information
      • Cookie Consent Tool
      • Security

      Work With Us

      • Advertisers
      • Careers
      Download the App

      • Browse by:
      • Companies
      • Jobs
      • Locations
      • Communities
      • Recent posts

      Copyright © 2008-2026. Glassdoor LLC. "Glassdoor," "Worklife Pro," "Bowls" and logo are proprietary trademarks of Glassdoor LLC.

      Company Bowl sample

      Want the inside scoop on your own company?

      Check out your Company Bowl for anonymous work chats.

      Bowls

      Get actionable career advice tailored to you by joining more bowls.

      Followed companies

      Stay ahead in opportunities and insider tips by following your dream companies.

      Job searches

      Get personalised job recommendations and updates by starting your searches.

      Software Development Engineer General Interview

      15 Nov 2018
      Anonymous employee
      Accepted offer
      Positive experience
      Difficult interview

      Application

      I interviewed at TuSimple

      Interview

      Great interviewer with enthusiastic and professional. The code interview was not that easy but the problem is of high quality. In the second round, we went through lots of details about previous working experience, and the interviewer, also the team leader, was very enthusiastic about his work.

      Interview questions [1]

      Question 1

      Given two alphabet strings str1 and str2. You can change the characters in str1 to any alphabet characters in order to transform str1 to str2. One restriction is, in each operation, you should change all the same characters simultaneously. What's more, you may use another special character * if necessary, which means during each operations, you may change the alphabet characters to *, or change each * to a specific character. We want to know the minimum operation times. If impossible, return -1. Template int MinOpTimes(string str1, string str2) { //... }; Examples Example 1: str1: accs, str2: eeec operation 1: change 'a'->'e'; // str1: eccs operation 2: change 'c'->'e'; // str1: eees operation 3: change 's'->'c'; // str1: eeec return 3; Example 2: str1: accs, str2: efec return -1; Example 3: str1: abb , str2: baa operation 1: change 'a'->'*'; // str1: *bb operation 2: change 'b'->'a'; // str1: *aa operation 3: change '*'->'b'; // str1: baa return 3;
      Answer question