• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar
  • Skip to secondary sidebar

GoHired

Interview Questions asked in Google, Microsoft, Amazon

Join WeekEnd Online Batch from 4-April-2020 on How to Crack Coding Interview in Just 10 Weeks : Fees just 20,000 INR

  • Home
  • Best Java Books
  • Algorithm
  • Internship
  • Certificates
  • About Us
  • Contact Us
  • Privacy Policy
  • Array
  • Stack
  • Queue
  • LinkedList
  • DP
  • Strings
  • Tree
  • Mathametical
  • Puzzles
  • Graph

Unix

C Program for TAIL command of UNIX

April 27, 2015 by Dhaval Dave

/*
* usage: myTail [-n] [<filename>] */

#include <stdio.h>
#include <stdlib.h>

#define MAX_LINE_LEN 1024
#define DEFAULT_N 10

int main(int argc, char *argv[]) {
char **tail;
int count = DEFAULT_N, n, i, headX = 0, tailX 
… Read More

Filed Under: Adobe Interview Questions, Interview Questions, problem Tagged With: c, Unix

Primary Sidebar

Join WeekEnd Online/Offline Batch from 4-April-2020 on How to Crack Coding Interview in Just 10 Weeks : Fees just 20,000 INR

Join WeekEnd Online/Offline Batch from 4-April-2020

WhatsApp us

Secondary Sidebar

Custom Search

  • How I cracked AMAZON
  • LeetCode
  • Adobe
  • Amazon
  • Facebook
  • Microsoft
  • Hacker Earth
  • CSE Interview

Top Rated Questions

Length of the longest substring without repeating characters

Generate next palindrome number

FizzBuzz Solution C C++

Wrong Directions given find minimum moves so that he can reach to the destination

Fibonacci Hashing & Fastest Hashtable

Naurki.com Security Breach

Possible sizes of bus to carry n groups of friends

LeetCode: Container With Most Water

SAP Off Campus Hiring_ March 2015 Analytical Aptitude

CodeChef’ RRCOPY

HackeEarth Flipkart’s Drone

N teams are participating. each team plays twice with all other teams. Some of them will go to the semi final. Find Minimum and Maximum number of matches that a team has to win to qualify for finals ?

Find if a binary tree is height balanced ?

Print Power Set of a Set

Inorder and Preorder traversals of a Binary Tree given. Output the Postorder traversal of it.

Right view of Binary tree

Find two non repeating elements in an array of repeating elements

Leetcode: Merge Intervals

Stickler thief

The Magic HackerEarth Nirvana solutions Hiring Challenge

Amazon Interview On-Campus For Internship – 1

Reversal of LinkedList

Print vertical sum of all the axis in the given binary tree

Print all nodes that are at distance k from a leaf node

building with N steps, we can take 1,2,3 steps calculate number of ways to reach at top of building

flattens 2 D linked list to a single sorted link list

Binary Tree in Java

Diagonal Traversal of Binary Tree

Given a sorted array and a number x, find the pair in array whose sum is closest to x

Test Cases for Round Function

Copyright © 2026 · Genesis Framework · WordPress · Log in