Longest Consecutive Have the function LongestConsecutive(arr) take the array of positive integers stored in arr and return the length...
Read More
String Changes - Problem Solving
String Changes Have the function StringChanges(str) take the str parameter being passed, which will be a string containing letters from th...
Read More
SWIFT: whole minute dilemma - Swift solution
SWIFT: whole minute dilemma - Swift solution func playlist (songs: [ Int ]) -> Int { var count = 0 for i in 0 ..<...
Read More
Efficient Shippling - Swift solution
SWIFT: Efficient Shippling - Swift solution Q. warehouse manager needs to create efficient shipping Answer: func getMaxUnits (boxes :...
Read More
Longest subsequence matching a substring - swift solution
SWIFT: Find Longest subsequence matching a substring - Swift solution func longestSubsequence (x: String , y: String ) -> Int { ...
Read More
Subscribe to:
Posts (Atom)