MCPcopy Create free account
hub / github.com/Ayush7614/Daily-Coding-DS-ALGO-Practice / main

Method main

Gfg/Java/Huffman Encoding.java:5–21  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

3class GFG
4 {
5 public static void main (String[] args)
6 {
7 //code
8 Scanner s=new Scanner(System.in);
9 int T=s.nextInt();
10 for(int i=0;i<T;i++)
11 {
12 String str=s.next();
13 int[] arr=new int[str.length()];
14 for(int j=0;j<arr.length;j++)
15 {
16 arr[j]=s.nextInt();
17 }
18 encode(str,arr);
19 System.out.println();
20 }
21 }
22
23 public static void encode(String str,int[] arr)
24 {

Callers

nothing calls this directly

Calls 3

encodeMethod · 0.95
nextMethod · 0.80
lengthMethod · 0.80

Tested by

no test coverage detected