8000 GitHub - AkshayKalbhor/CodilityTests: Solutions of the codility or any other online tests taken.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

AkshayKalbhor/CodilityTests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodilityTests

Solutions of the codility or any other online tests taken.

1: Amazon test : question detailed within the class Question: Write a function which returns distinct substrings of length k from the given input string. The substring should have one or more characters repeated in itself.

eg : Input string= abcabcb and K=4
then the function  should return 4 substrings as "abca", "bcab", "cabc" and "abcb"

eg : Input string= abcabcb and K=3
then the function  should return 1 substring as "bcb"

Solution File : AmazonTest.java

2: Sony Belgium test: Question: Write a program which accepts a string and an offset by which the characters in the string should be shifted. eg: string "DEF" and an offset of 3 should return "GHI" Spaces and other symbols should remain the same. Solution File : SonyTest.java

3: LocalCompany Question: Write a function that takes a string input and returns the first character that is not repeated anywhere in that string.

As an added challenge upper and lower case letters are considered the same character 
but the function should return the correct case for the initial letter.
for eg: the input sTreSS should return T.

If a string contains all repeating characters then it should return an empty string "".

Solution File: Challenge.java

About

Solutions of the codility or any other online tests taken.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0