How to Find First Unique Character in a String? September 9, 2016 c / c++, leetcode online judge, string No Comments Given a string (you may assume it is lowercase letters only), your task is to find out the first unique letter and return its index. If it does not … [Continue Reading...]
C/C++ Coding Exercise – Ransom Note (unordered_map or array) August 19, 2016 c / c++, data structure, data types, leetcode online judge No Comments Two strings are both lowercase letters. Write a function to determine if one string can be constructed using the letters from the other string. For example: canConstruct("aa", "ab") = … [Continue Reading...]