Coding Flashcards
Write a function to reverse a string.
Compile code
Write function to compute Nth fibonacci number. Try recursion and iteration.
Compile code
Print out the grade-school multiplication table up to 12x12
Compile code
Write a function that sums up integers from a text file, one int per line
Compile code
Write function to print the odd numbers from 1 to 99
Compile code
Find the largest int value in an int array.
Compile code
Format an RGB value (three 1-byte numbers) as a 6-digit hexadecimal string.
Compile code
A k-palindrome is a string which transforms into a palindrome on removing at most k characters.
Given string S, and interger K, print “YES” if S is a k-palindrome; otherwise print “NO”.
Constraints:
S has at most 20,000 characters.
0
Compile code
Determine if a string has all unique characters.
Compile code
Reverse a string in place
Compile code
Remove duplicates in a string in place
Compile code
Write a method to decide if two strings are anagrams or not
Compile code
Assume you have a method isSubstring which checks if one word is a substring of another string. Given two strings s1, and s2. write code to check if s2 is a rotation of s1 using only one call to isSubstring (i.e., “waterbottle” is a rotation of “erbottlewat”).
Compile code