sf engineer
BAN USER
- 1of 1 vote
AnswersGoal:
- sf engineer in United States
Write a function get_related_pins that takes a pin_id and returns a list of related pin_ids. Note that doing a good job on this challenge is as much about setting up good data structures and decomposing code cleanly as about clever data mining techniques, because setting up a good framework for iterating gets you further in the long run.
Data:
board_json.txt and pin_json.txt are text files of JSON-encoded dictionaries of board and pin object data, respectively. There is data for ~300k pins and ~10k boards, with possible duplicates.
Each board JSON dict contains the fields id, user_id, username, name, slug, description, and category (which may be null, but if not, is one of a fixed set of categories). Each pin JSON dict contains the fields id, board_id, user_id, img_url, is_repin, is_video, source, and link.
To get the data into a format that is easy to work with, consider using a lightweight database system like SQLite.| Report Duplicate | Flag | PURGE
Pinterest - 0of 0 votes
AnswerWe want you to write a more intelligent web scraper that will help us grab some
- sf engineer in United States
of the following information for sites of your choice:
Prices
Number of Items Available
Seller Information
Tags
Product Rating
Product Details
Product Title
This could work on sites such as Etsy, Amazon, Gap, or other sites of your choice.
Your Code:
Please write a small application that can read a csv of urls and images from a file.
For each url and image link it will download the image into a sub directory and store
its own json blob file of information for the urls. The schema is up to you, but it should
try to be as consistent for different sites as possible| Report Duplicate | Flag | PURGE
Pinterest Application / UI Design - 0of 0 votes
AnswersString Reduction
- sf engineer in United States
Given a string consisting of a,b and c's, we can perform the following operation: Take any two adjacent distinct characters and replace it with the third character. For example, if 'a' and 'c' are adjacent, they can replaced with 'b'. What is the smallest string which can result by applying this operation repeatedly?
Input:
The first line contains the number of test cases T. T test cases follow. Each case contains the string you start with.
Output:
Output T lines, one for each test case containing the smallest length of the resultant string after applying the operations optimally.
Constraints:
1 <= T <= 100
The string will have at most 100 characters.
Sample Input:
3
cab
bcab
ccccc
Sample Output:
2
1
5
Explanation:
For the first case, you can either get cab -> cc or cab -> bb, resulting in a string of length 2.
For the second case, one optimal solution is: bcab -> aab -> ac -> b. No more operations can be applied and the resultant string has length 1.
For the third case, no operations can be performed and so the answer is 5.| Report Duplicate | Flag | PURGE
Facebook Amazon Software Engineer / Developer Algorithm
RepJe suis Kirsten. Je travaille dans un magasin en tant que responsables de la chaƮne d'approvisionnement pour promouvoir la ...
Rep
RepJennyReimer, Dev Lead at Adobe
Badminton lover, coffee addict, guitarist, International Swiss style practitioner and TDC honorary member. Acting at the nexus of simplicity and ...
Repsujijaa565, AT&T Customer service email at ABC TECH SUPPORT
My name is suji. I am working as a Suadela Investment in Tulsa USA . I identify and establish a new ...
Repannasteven1246, Analyst at Accenture
Creative, highly visual fashion professional who can brilliantly mix and match the technical expertise and intuition like fabric and color ...
RepSoccer lover, coffee addict, guitarist, International Swiss style practitioner and TDC honorary member. Acting at the nexus of simplicity and ...
Repluisbshifflett, Aghori Mahakal Tantrik at ABC TECH SUPPORT
I am working as a partner in the Project Planner.I additionally assists people groups with holding appearance rights or ...
RepDonnaWHale, Data Engineer at ADP
Hi, I am passionate writer with a BA in English from the Ohio State University.5+ years of experience writing ...
Repsarciasonda, Associate at ABC TECH SUPPORT
Computer forensics investigators, also known as computer forensics specialists, computer forensics examiners, government , accounting firms, law firms, banks, and software ...
Repbrandysolsen, Area Sales Manager at AMD
I am a Social butterflies who enjoy travel.Have fun doing this job and project an atmosphere that reflects Amazon ...
Repmerrittmonique9, Android Engineer at AMD
I am Monique and working in high court from last 20 years.Handel many cases in my career.Build and ...
Repnyladsomerville, abc
Want to purchase best quality silencer at affordable price manufactured by top most trusted brand Innovative Arms.
Contact Stonefirearms now!
RepHi, I am Anne from Portsmouth, USA. I have been working as a freelance digital illustrator specialized in 3D character ...
RepRoyaltyAd is the top digital marketing company. We have a team of SEO experts that helps you to maximise your ...
RepGet powerful wazifa to know who did black magic. Guru Ji is the master of black magic totke, kala jadu ...