-
** It is found by comparing two DNA strands and counting how many of the nucleotides are different from their equivalent in the other string.Find out the difference in 2 strings. How many chars are different ?
GAGCCTACTAACGGGAT CATCGTAATGACGGCCT ^ ^ ^ ^ ^ ^^
-
Determine if a sentence is a pangram. A pangram (Greek: παν γράμμα, pan gramma, "every letter") is a sentence using every letter of the alphabet at least once. The best known English pangram is "The quick brown fox jumps over the lazy dog."
The alphabet used is ASCII, and case insensitive, from 'a' to 'z' inclusively.
-
Determine if a word or phrase is an isogram.
An isogram (also known as a "nonpattern word") is a word or phrase without a repeating letter.
Examples of isograms:
lumberjacks background downstream
The word isograms, however, is not an isogram, because the s repeats.
-
Convert a long phrase to its acronym.
Techies love their TLA (Three Letter Acronyms)!
Help generate some jargon by writing a program that converts a long name like Portable Network Graphics to its acronym (PNG).
-
Take a nested list and return a single list with all values except nil/null.
The challenge is to write a function that accepts an arbitrarily-deep nested list-like structure and returns a flattened structure without any nil/null values.
For Example input: [1,[2,3,null,4],[null],5] output: [1,2,3,4,5]
-
Implement a clock that handles times without dates.
Create a clock that is independent of date.
You should be able to add and subtract minutes to it.
Two clocks that represent the same time should be equal to each other. -
Create a Simple HTML Page with 1 button and add a new paragraph on every button click. You will need to use "innerHTML" property of a HTML element for this.
-
** Create a JSON data object for Facebook news feed, should have data for author name, author image, post content, list of likes,comments and share etc. Now you must be able to query these :
a. Check how many posts are by a particular user in your feed ?
b. How many likes on 5th post ?
c. Who are the users who liked 5th post ?
d. Who is the First user to like 5th post ?
e. How many users are there who have both commented and liked 5th post. Also show list of those users.
f. Find out the person who has commented most on your feed. (In top 10 posts) -
Create a JS object representing your facebook friendlist.
a. Delete friends who have fake as first name. ( e.g fake singh)
b. Add 2 more friends to your friendlist at a time.
c. print all friends in your friendlist sorted by Name.
d. print all friends in your friendlist sorted by Length of Name( # of chars)
e. print initials of all your friends (Virat Kohli becomes VK)
f. print only friends who have same first names