Write a function in Typescript that uses generics to return the first non-repetitive character in a string. If no nonrepetitive char is found it should return a null. Please handle edge conditions - input and output. // Example usage: const result = firstNonRepeatingCharacter("aabbccddeeffg"); console.log("First non-repeating character:", result); // Output: "g" const result = firstNonRepeatingCharacter("abcabc"); console.log("First non-repeating character:", result); // Output: null
TabishAnwarShaikh/coding-challenge-typescript
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Releases
No releases published
Languages
- Java 48.7%
- C++ 26.4%
- JavaScript 24.9%