Skip to content

Instantly share code, notes, and snippets.

View mihirchakradeo's full-sized avatar

Mihir Chakradeo mihirchakradeo

  • Stony Brook, NY
View GitHub Profile
@mihirchakradeo
mihirchakradeo / TIL.md
Last active March 20, 2018 04:37
Interview Prep Notes
  1. Reading std C lib header contents from command line:

    echo "#include<string.h>" | cpp | grep "strstr" Displays strstr() function definition

  2. Finding multiple char in a string, handle case where last char is unique

  3. To find a number which occurs odd number of times from a list, make use of the XOR ‘^’ operator. The result will be the number which occurs for odd number of times.