Stuff
public text v1 · immutable/**
* Christopher Prashad
* Mrs Orlik
* Period 4
*/
public class twentyone
{
public static boolean isPower(int n)
{
return n>=1 && (n==2 || isPower(n/2));
}
public ListNode reverse(ListNode head)
{
if(head == null)
return null;
ListNode header = new ListNode(head.getValue(), reverse(head.getNext()));
return header;
}
private boolean isWord(String s)
{
if(
}
public boolean isPhrase(String s)
{
}
}