rdtsc/codeeval-problem-statements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

As of 2018-02-12, CodeEval has ceased operations. This (unofficial) repository mirrors* the problem statements for all 239‡ interactive challenges that once lived on the platform.

* A couple of problem statements are missing animated GIFs which I don't have a backup of. They were supplementary and are not required to solve the challenges in question.

‡ Technically, there were 240 challenges on the platform. Challenge #127 ("Code Plagiarism") wasn't an interactive/graded challenge; thus no points were awarded for it by the online evaluation system.

CIDNameSynopsis
152Age DistributionPrint out where the person is
082Armstrong NumbersDetermine if a number is an armstrong number
083Beautiful StringsFacebook Hacker Cup 2013 problem
163Big DigitsPrint out magnified digits using pseudographics
019Bit PositionsBits in position x,y are same or different
222Black CardFind the winner
099Calculate DistanceCalculate a distance between two points
093Capitalize WordsCapitalize words in a sentence
211Chardonnay or CabernetGuess a wine name
205Clean Up the WordsPrint the words separated by spaces
192Compare PointsGiven two (x, y) points A and B, determine which cardinal direction B is from A
128Compressed SequenceWrite a program that compresses a sequence of numbers
140Data RecoveryReconstruct a sentence using hints
166Delta TimeFind the time difference
183DetailsDetermine how many cells will be shifted detail
100Even NumbersDetermine if a number is even or not
022Fibonacci SeriesPrint out the nth fibonacci number
026File SizePrint the file size in bytes
097Find a WriterFind a famous writer in a string
208Find the Highest ScoreFind the highest rate in the table
001Fizz BuzzA simple game involving divisibility tests
230FootballFind countries that are football fans
039Happy NumbersDetermine if a number is a happy number or not
067Hex to DecimalConvert a hex number to it's decimal equivalent
122Hidden DigitsTry to look behind the scenes
102JSON Menu IDsCalculate IDs in JSON menu
149Juggling With ZerosConvert a zero-based number into integer
180Knight MovesFind positions for the next move of the knight
147Lettercase Percentage RatioFind the percentage ratio
111Longest WordGet the longest word in a sentence
020LowercaseLowercase text
103Lowest Unique NumberFind the lowest unique number in a set
178Matrix RotationRotate a 2D matrix 90 degrees clockwise
186Max Range SumDetermine max sum at the range
240Mersenne PrimeFind all Mersenne numbers smaller than n
189Minimum DistanceFind a point with the smallest sum of distances to every given point
115Mixed ContentSeparate words with digits
116Morse CodeDecode Morse code
018Multiples of a NumberMultiples of a number greater than another number
023Multiplication TablesPrint out the grade school multiplication table upto 12*12
113Multiply ListsMultiply elements in 2 lists
062N Mod MDetermine the modulus (without the modulus operator)
160Nice AnglesConvert angle values to sexagesimal format
232Not So CleverSimplicity is not always good
025Odd NumbersPrint the odd numbers from 1 to 99
217One Zero, Two zeros...Count zeros in a binary system
237Panacea - Truth or LieCheck whether the virus was stopped by antivirus
092Penultimate WordFind the next-to-last word
003Prime PalindromeBiggest prime palindrome < 1000
087Query BoardSet and get values from a matrix using tiny DSL
136Racing CharsExplore a race track avoiding crashes
167Read MoreLimit the length of the text
227Real FakeCheck credit card numbers
008Reverse WordsReversing an input sequence of words
031Rightmost CharPrint the position of the rightmost occurrence of a char
124Road TripDo not be left without petrol
156Roller CoasterTurn the text into RoLlErCoAsTeR case
106Roman NumeralsConvert a cardinal number to a Roman numeral
040Self Describing NumbersDetermine if a number is a self-describing number or not
030Set IntersectionPrint the intersection of two sets of numbers
107Shortest RepetitionFind the shortest repetition in a string
235Simple or TrumpCheck which card is higher
091Simple SortingSort several numbers
174Slang FlavorAdd some slang to the text
131Split the NumberEvaluate the number according to the pattern
202Stepwise WordPrint the longest word in a stepwise manner
199String MaskChange case letters by mask
203Strings and ArrowsPrint the number of arrows in a string
021Sum of DigitsSum of digits comprising a number
024Sum of Integers From FilePrint the sum of integers read from a file
004Sum of PrimesSum of first 1000 primes
096Swap CaseSwap case in a string
112Swap ElementsSwap elements in a list
196Swap NumbersSwap numbers surrounding a word
225TestingWanna try to be a tester?
132The Major ElementFind the major element in a sequence
214Time to EatSort timestamps in the right order
220Trick or TreatCount all candies
029Unique ElementsExtract unique list from a sorted list of numbers
173Without RepetitionsDelete characters that are consistently repeated
104Word to DigitSubstitute words to digits
139Working ExperienceRetrieve an actual value
CIDNameSynopsis
117A Pile of BricksClose a hole in a wall
223Alternative RealityCount all alternative ways
041Array AbsurdityDetermine if an array contains a duplicated entry
084Balanced SmileysFacebook Hacker Cup 2013 problem
146Bats ChallengeCount bats on the wire
236Beat or BitLearn more about the Gray code algorithm
209Black or WhiteFind the smallest submatrix
179Broken LCDDetermine whether a given number can be displayed on the damaged LCD
218Builders TeamCount all squares on the map
184Burrows-Wheeler TransformComplete file decompression by inverting BWT
138Car RaceDetermine the fastest car
172Card Number ValidationCheck if bank card numbers are valid
054Cash RegisterDetermine the amount of change to be returned
119Chain InspectionTry to pass a chain
133City Blocks FlyoverChart the path of a helicopter from above to discover how many city blocks it flew over
238Code CombinationsCheck whether you can make words from the given letters
148Color Code ConverterDetermine and convert the color code
197Column NamesConvert integer to excel-style column name
187Consecutive PrimesDetermine how many ways the numbers can be arranged such that every consecutive pair sums to a prime
063Counting PrimesCount the number of primes between two integers
027Decimal to BinaryPrint the binary representation of a decimal number
073Decode NumbersCount the number of ways to decode a string
005Detecting CyclesDetecting loops within a sequence
033Double SquaresFaceBook Hacker Cup 2011: Output the number of ways to write X as the sum of two squares
215Double TroubleCalculate the number of correct variants for messages
035Email ValidationWrite a regular expression to validate an email address
015EndiannessDetermine the endianness of a system
169Filename PatternFilter a list of filenames
101Find a SquareDo 4 points make a square?
012First Non-Repeated CharacterFind the first non repeated character in a string
075Flavius JosephusEliminate every i'th item from a circular list
161Game of LifeImplement the classical cellular automaton game
181Gronsfeld CipherDecipher the message enciphered with the Gronsfeld cipher
170Guess the NumberGuess the number in log2(N) steps
158Interrupted Bubble SortSort a list of elements, partially
043Jolly JumpersDetermine if a sequence of numbers is a Jolly Jumper
177Justify the TextAlign the text to the specified width
153LocksCalculate unlocked doors
002Longest LinesFinding the 'N' longest lines within a file
121Lost in TranslationTry to become a native speaker
011Lowest Common AncestorDetermine the lowest common ancestor within a tree
206Lucky TicketsCount the lucky tickets
193Magic NumbersPrint out a list of all the magic numbers in a provided range
231Meet Cocktail SortLearn more about cocktail sort algorithm
233Meet Comb SortLearn more about the comb sort algorithm
074Minimum CoinsFind the minimum number of coins to arrive at a total
010Mth to Last ElementDetermine the Mth to last element of a list
016Number of OnesDetermine the number of one bits in an integer
190Number OperationsDetermine if it is possible to produce the number 42 with five cards
034Number PairsFind pairs of numbers in a sorted array whose sum is X
221Organizational HierarchyRecreate the hierarchy tree
070Overlapping RectanglesDetermine if two rectangles overlap
037PangramsFind the missing alphabets
066Pascals TrianglePrint out pascals triangle upto a certain depth
089Pass TriangleLead the way within the triangle
098Point in CircleDefine whether a point is in a circle
125Predict the NumberTry to go beyond the limits
046Prime NumbersPrint prime numbers less than N
013Remove CharactersDelete specific characters from a string
045Reverse and AddContinually add a number to its reverse to arrive at a palindrome
071Reverse GroupsReverse elements in a list k items at a time
212Robo and RobittaCount all nuts
150Roman and ArabicCalculate aromatic numbers
137Seek for an IntruderFind the IP address of an intruder
130Sequence TransformationTransform a binary sequence into a string
094Simple CalculatorCreate a simple calculator
200Sort Matrix ColumnsSort matrix columns from lowest to highest numbers
009Stack ImplementationImplement a stack interface
076String RotationFind if a string is the rotation of another string
078SudokuDetermine if a grid layout is a valid sudoku solution
165Suggest GroupsHelp your friends to join groups
017Sum of IntegersDetermine the largest sum of contiguous integers in an array
081Sum to ZeroCount of ways in which the sum of four numbers is zero
143The Ministry of TruthYour task is to help the Big Brother
228To PI or Not to PIPrint a PI number
032Trailing StringDetermine if a string 'B' occurs at the end of string 'A'
226Try to Solve ItHow good decoder are you?
194Twenty Forty EightImplement the 2048 game logic
080URI ComparisonDetermine if two URIs match
068Valid ParenthesesDetermine if string is a well-formed parentheses
135Word ChainFind the longest chain of words
CIDNameSynopsis
134A Bus NetworkTry to save more time
095Advanced CalculatorCreate an advanced calculator
201Alphabet BlocksForming words from alphabet blocks
239As Quick as a FlashLearn more about the quick sort algorithm
155ASCII DecryptionDecrypt a message
109Bay BridgesBuild Bridges Over San Francisco Bay
210Brainf*ckBlow your mind
064Climbing StairsCount the number of ways to climb to the top of a staircase
051Closest PairGiven a set of points in a two dimensional space, you will have to find the distance between the closest two points
234Code Like HuffmanLearn more about Huffman's tree
127Code PlagiarismCompare source code of two programs
090Commuting EngineerTravelling Salesman Problem
108Computer TerminalPrint text to terminal with control sequences
151ing EggsDetermine the number of drops
195Crime HouseCount criminals in the Crime House
077Da VyncyRecreate a document from a set of fragments
061DecryptionDetermine the plain text message from an encrypted string
144Digit StatisticsFind statistics in sequence
048Discount OffersDetermine optimal pairing of customers with products
069Distinct SubsequencesDetermine the number of distinct subsequnces within a string
188Distinct TrianglesFind the number of distinct triangles formed in a graph
171DNA AlignmentFind the highest score of DNA sequences alignment
123Efficient DeliveryLoad your tankers with oil
216Everything or NothingCheck if a code is correct
085Find MinFacebook Hacker Cup 2013 problem
141Flight 370Follow the current search results
044Following IntegerDetermine the next number in a sequence
185Glue Shredded PiecesReconstruct the original text from overlapping pieces
060Grid WalkThe number of grid points that can be accessed
229GrinchHelp Grinch to find the shortest way
154IP PackageCalculate IP checksum
088Juggle FestA challenge from Yodle
213Lakes, Not CakesCount all lakes
105Largest Sub-MatrixDetermine the largest sub-matrix in a matrix
198Less Money, More ProblemsHelp citizens by adding new coin denominations
058Levenshtein DistanceFind out how big the social network of a word is
191Lights OutSwitch all the lights off with minimum number of moves
006Longest Common SubsequenceLCS between two strings
182Longest PathFind the longest path of unique elements
164Mars NetworksFind the minimum length of the optical fiber cable which connects probes to a network
036Message DecodingDecode an encoded message
079MinesweeperFind the mines within a M*N matrix
072Minimum Path SumCalculate the minimum sum of a path through a matrix
114Package ProblemPut as many things into a package as possible
047Palindromic RangesFind out a range of palindromic numbers
049Peak TrafficFinding out which friends you interact with most
126Play With DNAWrite an algorithm that a finds DNA segment in a given DNA string
086Poker HandsCompare two poker hands
007Prefix ExpressionsEvaluating a prefix expression
224Prisoner or CitizenIn jail or at large?
176Ray of LightTrace the path of light distribution
053Repeated SubstringFind the longest repeated substring in a given text
056Robot MovementsNumber of ways a robot can reach its destination
129Routing ProblemFind all the shortest paths for the package between two specified hosts
145Running for PresidentBuild your strategy to win the Presidency of the United States
118Seat Your Team MembersPlace the employees in a new office
120SkyscrapersOutline skyscrapers in a city
057Spiral PrintingPrint out a 2D array in spiral order
204Straight LinesPrint the number of straight lines
038String ListCreate a new string from constituent alphabets
014String PermutationsPrint out all permutations of a string
028String SearchingDetermine if substring match exists
050String SubstitutionCreate a new string by replacing substrings within it
059Telephone WordsPrint out the words corresponding to a telephone number
052Text DollarPrint out the text dollar amount of a given quantity
110Text to NumberConvert English text representation of a number to a decimal number
175The CubesFind the length of the shortest way in the multilevel labyrinth
168The FrequencyFind the signals frequency
157The LabyrinthFind the shortest way to exit
219The TouristFind the shortest route between cities
162Too UniqueFind and mark the biggest submatrices of unique elements
055Type AheadBuilding a type ahead feature
042Ugly NumbersCount the number of expressions that can be created from a number
142Visit to the HeadquartersOrganize the queues
159Where Is Wi-FiFind out in which buildings there are hotspots
207Which Way Is Faster?Find the fastest way
065Word SearchFind if a word exists in a grid

All original work is released under the MIT license, unless otherwise specified.

All third-party content, referenced product names, trademarks, images, and logos are property of their respective owners.

About

CodeEval (defunct) problem statement archive

Topics

Resources

Stars

Watchers

Forks