Skip to content

Instantly share code, notes, and snippets.

@manishsat
manishsat / interviewitems.MD
Created October 13, 2016 21:17 — forked from amaxwell01/interviewitems.MD
My answers to over 100 Google interview questions

##Google Interview Questions: Product Marketing Manager

  • Why do you want to join Google? -- Because I want to create tools for others to learn, for free. I didn't have a lot of money when growing up so I didn't get access to the same books, computers and resources that others had which caused money, I want to help ensure that others can learn on the same playing field regardless of their families wealth status or location.
  • What do you know about Google’s product and technology? -- A lot actually, I am a beta tester for numerous products, I use most of the Google tools such as: Search, Gmaill, Drive, Reader, Calendar, G+, YouTube, Web Master Tools, Keyword tools, Analytics etc.
  • If you are Product Manager for Google’s Adwords, how do you plan to market this?
  • What would you say during an AdWords or AdSense product seminar?
  • Who are Google’s competitors, and how does Google compete with them? -- Google competes on numerous fields: --- Search: Baidu, Bing, Duck Duck Go
@manishsat
manishsat / BalancedPartition.java
Created May 19, 2016 19:55 — forked from pyemma/BalancedPartition.java
Classical Balanced Partition Problem
// Balanced Partition problem, the target is to partition the array into two
// sets so that the difference of the two sets' sum is as small as possible
// use dp to find the possible sets sum as close to S/2 as possbile, where S
// is the sum of all elements. DP[i][j] means whether we can build sum j using
// elements from 0 to i, DP[i][j] = DP[i-1][j] | DP[i-1][j-A[i]]
public class BalancedPartition {
public static int balancedPartition(int[] A) {
int sum = 0;
int n = A.length;
# tested on Debian
# require ffmpeg@2.6.3 with --enable-libfreetype for drawtext extension
# ffmpeg streaming to ffserver feed
# file -> ffmpeg (playback) -> ffmpeg (add timestamp) -> ffmpeg (add timestamp) -> ffserver (FFM delivery)
ffmpeg -i your-file.mp4 -tune zerolatency -filter:v "setpts=1.0*PTS" -f nut pipe:1 \
| ffmpeg -re -i pipe:0 -vf "drawtext=expansion=normal:fontfile=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf:reload=1:textfile=test.txt: x=50: y=50: fontcolor=white" -tune zerolatency -f nut pipe:1 \
| ffmpeg -y -i pipe:0 -tune zerolatency http://ffserver-ip:7000/feed1.ffm