Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/imjenal/customerguru
- Owner: imjenal
- Created: 2018-03-11T18:12:31.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-03-11T18:19:41.000Z (over 6 years ago)
- Last Synced: 2024-01-22T01:30:25.588Z (10 months ago)
- Language: Java
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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-06returns
fromdatereturn : 2016-09-01
todatereturn : 2016-10-31fromdate : 2016-09-11
todate : 2016-11-06returns
fromdatereturn : 2016-09-01
todatereturn : 2016-11-14fromdate : 2016-09-11
todate : 2016-11-20returns
fromdatereturn : 2016-09-01
todatereturn : 2016-11-14Q2. 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