Posts

unix command

pwd-present work directory Ls-list of file. Cd change directory Who-how many user is logged in Whoami-directly who user is logged in Man-manully online mannual information about commant Who --count ---> No of user logged in Who -b -->last time when system was logged in cal-calender cal -j-->julian calender Cal -3 last 3 moth calender Cal -m-->current month calender cal -y---> current year command Date +%a Date +%A--.date in full form Date +%b Date +%B-->month in fulform Date +%F-2016-08-23 Date +%y-year How to create a file Cat > NareshTech  ///promt allow to enter data enter data” hello word” Note:$ user propmpt        # admin prompt See what ever is written in file Cat NareshTech   or cat < NareshTech Display data in numbered format Cat -n NareshTech Append in specific file Cat >> NareshTech//will give prompt to append Output of only non blank lin...

dynamic programming important question

Image
1.longest common subsequence import java.io.*; class longest {     public static int lcs(char[] x,char[] y,int m,int n)     {             int[][] a=new int[m+1][n+1];             for(int i=0;i<=m;i++)             {                     for(int j=0;j<=n;j++)                     {                         if(i==0 || j==0)                         {               ...