Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/imjenal/customerguru

Solution for CustomerGuru, Bangalore
https://github.com/imjenal/customerguru

Last synced: 14 days ago
JSON representation

Solution for CustomerGuru, Bangalore

Awesome Lists containing this project

README

        

# CustomerGuru

Q1. Write a function that takes two Date parameters as inputs, say fromdate and todate, and the function returns the first day of the fromdate's month and last day of todate's month.
Make sure that the last day does not exceed today's date in any case. Some example outputs are shown below:

For example, assuming that Today's date is 2016-11-14
fromdate : 2016-09-11
todate : 2016-10-06

returns
fromdatereturn : 2016-09-01
todatereturn : 2016-10-31

fromdate : 2016-09-11
todate : 2016-11-06

returns
fromdatereturn : 2016-09-01
todatereturn : 2016-11-14

fromdate : 2016-09-11
todate : 2016-11-20

returns
fromdatereturn : 2016-09-01
todatereturn : 2016-11-14

Q2. Write a program to print the top 5 most repeated words from a List? The output should be sorted in descending order.
Consider this list as an example input: {AAA,AAA,BBB,BBB,BBB,CC,CC XXX, XXX,PP,QQ,XXX,XXX}

Q3.Write a program to merge two very large sorted array and print the final array.

arrayA [100000]
arrayB [100000]

[note : The time complexity should not be O(n^2)]

Q4.Create a web form/android app which has the following fields (bonus question - not mandatory but extra point for finishing it)

a. name [text box]
b. Phone [numeric field]
c. email [email field]
d. city [drop down containing: Select one, Delhi,Mumbai,kolkata,Chennai,Bangalore]

Add a button to validate all the fields
a. All fields are mandatory
b. phone is numeric
c. email validation
d. name should be alphabets only
Fields that fail validation should turn red